33 #ifndef BESDapError_h_
34 #define BESDapError_h_ 1
53 libdap::ErrorCode _error_code;
59 BESDapError(
const string &s,
bool fatal, libdap::ErrorCode ec,
const string &file,
int line) :
60 BESError(s, 0, file, line), _error_code(ec)
77 virtual void dump(ostream &strm)
const;
83 #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
BESDapError(const string &s, bool fatal, libdap::ErrorCode ec, const string &file, int line)
#define BES_INTERNAL_ERROR
virtual void set_error_type(int type)
Set the return code for this particular error class.
Abstract exception class for the BES with basic string message.
error object created from libdap error objects and can handle those errors
virtual int get_error_code() const
#define BES_INTERNAL_FATAL_ERROR
virtual void dump(ostream &strm) const
dumps information about this object
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