35 using std::istringstream ;
74 string err = dhi.
action +
" error type missing" ;
77 istringstream strm( etype_s ) ;
78 unsigned int etype = 0 ;
80 if( !etype || etype > 5 )
82 string err = dhi.
action +
" invalid error type, should be 1-5" ;
89 string err = dhi.
action +
" Internal Error" ;
95 string err = dhi.
action +
" Internal Fatal Error" ;
101 string err = dhi.
action +
" Syntax User Error" ;
107 string err = dhi.
action +
" Forbidden Error" ;
113 string err = dhi.
action +
" Not Found Error" ;
136 string err =
"An exception should have been thrown, nothing to transmit" ;
150 << (
void *)
this <<
")" << endl ;
#define BES_SYNTAX_USER_ERROR
error thrown if the resource requested cannot be found
BESShowErrorResponseHandler(const string &name)
exception thrown if an internal error is found and is fatal to the BES
exception thrown if inernal error encountered
#define BES_INTERNAL_ERROR
#define BES_FORBIDDEN_ERROR
error thrown if there is a user syntax error in the request or any other user error ...
static BESResponseHandler * ResponseBuilder(const string &name)
handler object that knows how to create a specific response object
static ostream & LMarg(ostream &strm)
#define BES_INTERNAL_FATAL_ERROR
error thrown if the BES is not allowed to access the resource requested
Structure storing information used by the BES to handle the request.
map< string, string > data
the map of string data that will be required for the current request.
virtual void dump(ostream &strm) const
dumps information about this object
#define BES_NOT_FOUND_ERROR
virtual void execute(BESDataHandlerInterface &dhi)
throws a specific exception to test error handling in client
virtual ~BESShowErrorResponseHandler(void)
virtual void dump(ostream &strm) const
dumps information about this object
string action
the response object requested, e.g.
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object ...