fixed namespace for ErrorException when throwing it