35#include "BESXMLShowErrorCommand.h"
36#include "BESXMLUtils.h"
38#include "BESResponseNames.h"
39#include "BESDataNames.h"
40#include "BESSyntaxUserError.h"
71 map<string, string> props;
73 if (action != SHOW_ERROR_STR) {
74 string err =
"The specified command " + action +
" is not a show error command";
78 d_xmlcmd_dhi.action = SHOW_ERROR;
80 etype = props[
"type"];
82 string err = action +
" command: error type property missing";
86 d_xmlcmd_dhi.data[SHOW_ERROR_TYPE] = etype;
102 strm << BESIndent::LMarg <<
"BESXMLShowErrorCommand::dump - (" << (
void *)
this <<
")" << endl;
105 BESIndent::UnIndent();
Structure storing information used by the BES to handle the request.
error thrown if there is a user syntax error in the request or any other user error
Base class for the BES's commands.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
std::string d_cmd_log_info
Used only for the log.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void parse_request(xmlNode *node)
parse a set context command.
static void GetNodeInfo(xmlNode *node, std::string &name, std::string &value, std::map< std::string, std::string > &props)
get the name, value if any, and any properties for the specified node