33 #ifndef BESDapError_h_ 34 #define BESDapError_h_ 1 37 #include "BESDataHandlerInterface.h" 53 libdap::ErrorCode d_error_code;
61 BESDapError(
const string &s,
bool fatal, libdap::ErrorCode ec,
const string &file,
int line) :
62 BESError(s, 0, file, line), d_error_code(ec)
74 virtual int get_error_code()
const 79 virtual void dump(ostream &strm)
const;
85 #endif // BESDapError_h_ static int convert_error_code(int error_code, int current_error_type)
converts the libdap error code to the bes error type
virtual void set_error_type(int type)
Set the return code for this particular error class.
virtual void dump(ostream &strm) const
dumps information about this object
Abstract exception class for the BES with basic string message.
error object created from libdap error objects and can handle those errors
Structure storing information used by the BES to handle the request.
static int handleException(BESError &e, BESDataHandlerInterface &dhi)
handles exceptions if the error context is set to dap2