Fixed ErrorException class