36 using std::ostringstream;
68 return current_error_type ;
87 case no_such_variable:
93 case no_authorization:
94 case cannot_read_file:
127 if( context ==
"dap2" )
129 ErrorCode ec = unknown_error ;
151 s <<
"libdap exception building response" 172 << (
void *)
this <<
")" << endl ;
#define BES_SYNTAX_USER_ERROR
static int convert_error_code(int error_code, int current_error_type)
converts the libdap error code to the bes error type
virtual int get_error_code() const
#define BES_INTERNAL_ERROR
virtual void dump(ostream &strm) const
Displays debug information about this object.
silent informational response object
virtual void set_error_type(int type)
Set the return code for this particular error class.
#define BES_FORBIDDEN_ERROR
virtual string get_context(const string &name, bool &found)
retrieve the value of the specified context from the BES
virtual void dump(ostream &strm) const
dumps information about this object
virtual int get_error_type()
Return the return code for this error class.
virtual string get_message()
get the error message for this exception
Abstract exception class for the BES with basic string message.
static ostream & LMarg(ostream &strm)
error object created from libdap error objects and can handle those errors
#define BES_INTERNAL_FATAL_ERROR
static BESContextManager * TheManager()
Structure storing information used by the BES to handle the request.
virtual void set_message(const string &msg)
set the error message for this exception
#define BES_NOT_FOUND_ERROR
static int handleException(BESError &e, BESDataHandlerInterface &dhi)
handles exceptions if the error context is set to dap2
BESInfo * error_info
error information object