fixed call to ErrorException namespace