Added overloaded ostream operator in error class