#include <BESExceptionManager.h>
Public Member Functions | |
virtual void | add_ehm_callback (p_bes_ehm ehm) |
virtual int | handle_exception (BESException &e, BESDataHandlerInterface &dhi) |
Manage any exceptions thrown during the whole process. | |
virtual void | dump (ostream &strm) const |
dumps information about this object | |
Static Public Member Functions | |
static BESExceptionManager * | TheEHM () |
Protected Member Functions | |
BESExceptionManager () | |
virtual | ~BESExceptionManager () |
Definition at line 48 of file BESExceptionManager.h.
BESExceptionManager::BESExceptionManager | ( | ) | [protected] |
BESExceptionManager::~BESExceptionManager | ( | ) | [protected, virtual] |
Definition at line 57 of file BESExceptionManager.cc.
void BESExceptionManager::add_ehm_callback | ( | p_bes_ehm | ehm | ) | [virtual] |
Definition at line 62 of file BESExceptionManager.cc.
Referenced by TestModule::initialize(), and BESDapModule::initialize().
int BESExceptionManager::handle_exception | ( | BESException & | e, | |
BESDataHandlerInterface & | dhi | |||
) | [virtual] |
Manage any exceptions thrown during the whole process.
Specific responses are generated given a specific Exception caught.
e | excption to be managed | |
dhi | information related to request and response |
BESIncorrectException
Definition at line 84 of file BESExceptionManager.cc.
References _BESDataHandlerInterface::action_name, BESInfo::add_exception(), BESInfo::add_tag(), BESInfo::begin_response(), BESInfoList::build_info(), DEFAULT_ADMINISTRATOR, BESInfo::end_response(), _BESDataHandlerInterface::error_info, BESKeys::get_key(), BESException::get_return_code(), TheBESKeys::TheKeys(), and BESInfoList::TheList().
Referenced by BESInterface::exception_manager().
void BESExceptionManager::dump | ( | ostream & | strm | ) | const [virtual] |
dumps information about this object
Displays the pointer value of this instance along with the number of registered exception handler callbacks. Currently there is no way of telling what callbacks are registered, as no names are passed to the add method.
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Definition at line 203 of file BESExceptionManager.cc.
References BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().
BESExceptionManager * BESExceptionManager::TheEHM | ( | ) | [static] |
Definition at line 213 of file BESExceptionManager.cc.
References BESExceptionManager().
Referenced by BESInterface::exception_manager(), TestModule::initialize(), and BESDapModule::initialize().