OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
error thrown if there is a user syntax error in the request or any other user error More...
#include <BESSyntaxUserError.h>
Public Member Functions | |
BESSyntaxUserError (const string &s, const string &file, unsigned int line) | |
virtual void | dump (ostream &strm) const |
Displays debug information about this object. More... | |
virtual int | get_error_type () |
Return the return code for this error class. More... | |
virtual string | get_file () |
get the file name where the exception was thrown More... | |
virtual int | get_line () |
get the line number where the exception was thrown More... | |
virtual string | get_message () |
get the error message for this exception More... | |
virtual void | set_error_type (int type) |
Set the return code for this particular error class. More... | |
virtual void | set_message (const string &msg) |
set the error message for this exception More... | |
virtual | ~BESSyntaxUserError () |
Protected Member Functions | |
BESSyntaxUserError () | |
Protected Attributes | |
string | _file |
unsigned int | _line |
string | _msg |
unsigned int | _type |
error thrown if there is a user syntax error in the request or any other user error
Definition at line 41 of file BESSyntaxUserError.h.
|
inlineprotected |
Definition at line 44 of file BESSyntaxUserError.h.
|
inline |
Definition at line 46 of file BESSyntaxUserError.h.
|
inlinevirtual |
Definition at line 51 of file BESSyntaxUserError.h.
|
inlinevirtual |
Displays debug information about this object.
dumps information about this object
strm | output stream to use to dump the contents of this object |
Displays the pointer value of this instance along with the exception message, the file from which the exception was generated, and the line number in that file.
strm | C++ i/o stream to dump the information to |
Reimplemented from BESError.
Definition at line 53 of file BESSyntaxUserError.h.
References BESError::dump(), BESIndent::Indent(), and BESIndent::UnIndent().
|
inlinevirtualinherited |
Return the return code for this error class.
Returns the return code for this error class, which could represent the need to terminate or do something specific base on the error
Definition at line 135 of file BESError.h.
References BESError::_type.
Referenced by BESInfo::add_exception(), BESApacheInterface::exception_manager(), DaemonCommandHandler::handle(), BESExceptionManager::handle_exception(), and BESDapError::handleException().
|
inlinevirtualinherited |
get the file name where the exception was thrown
Definition at line 102 of file BESError.h.
References BESError::_file.
Referenced by BESInfo::add_exception().
|
inlinevirtualinherited |
get the line number where the exception was thrown
Definition at line 110 of file BESError.h.
References BESError::_line.
Referenced by BESInfo::add_exception().
|
inlinevirtualinherited |
get the error message for this exception
Definition at line 94 of file BESError.h.
References BESError::_msg.
Referenced by BESInfo::add_exception(), BESMemoryGlobalArea::BESMemoryGlobalArea(), BESServerHandler::BESServerHandler(), PPTClient::closeConnection(), BESApacheInterface::exception_manager(), BESCatalogUtils::exclude(), BESInterface::finish(), BESDapResponseCache::get_instance(), BESStoredDapResultCache::get_instance(), DaemonCommandHandler::handle(), BESDapError::handleException(), BESCatalogUtils::include(), PPTClient::initConnection(), ServerApp::initialize(), StandAloneApp::initialize(), BESModuleApp::initialize(), main(), ServerApp::run(), StandAloneApp::run(), CmdApp::run(), BESModuleApp::terminate(), and CmdTranslation::translate().
|
inlinevirtualinherited |
Set the return code for this particular error class.
Sets the return code for this error class, which could represent the need to terminate or do something specific based on the error.
type | the type of error this error object represents. Can be one of BES_INTERNAL_ERROR, BES_INTERNAL_FATAL_ERROR, BES_SYNTAX_USER_ERROR, BES_FORBIDDEN_ERROR, BES_NOT_FOUND_ERROR |
Definition at line 124 of file BESError.h.
References BESError::_type.
Referenced by BESDapError::handleException(), and BESApacheInterface::validate_data_request().
|
inlinevirtualinherited |
set the error message for this exception
msg | message string |
Definition at line 86 of file BESError.h.
References BESError::_msg.
Referenced by BESDapError::handleException().
|
protectedinherited |
Definition at line 55 of file BESError.h.
Referenced by BESError::dump(), and BESError::get_file().
|
protectedinherited |
Definition at line 56 of file BESError.h.
Referenced by BESError::dump(), and BESError::get_line().
|
protectedinherited |
Definition at line 53 of file BESError.h.
Referenced by BESError::BESError(), BESError::dump(), BESError::get_message(), and BESError::set_message().
|
protectedinherited |
Definition at line 54 of file BESError.h.
Referenced by BESError::dump(), BESError::get_error_type(), and BESError::set_error_type().