added ErrorClass