Fixed missing ErrorClass definition