Adding Error_exception class