BESExceptionManager Class Reference

#include <BESExceptionManager.h>

Inheritance diagram for BESExceptionManager:

Inheritance graph
[legend]
Collaboration diagram for BESExceptionManager:

Collaboration graph
[legend]
List of all members.

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 BESExceptionManagerTheEHM ()

Protected Member Functions

 BESExceptionManager ()
virtual ~BESExceptionManager ()

Detailed Description

Definition at line 48 of file BESExceptionManager.h.


Constructor & Destructor Documentation

BESExceptionManager::BESExceptionManager (  )  [protected]

Definition at line 53 of file BESExceptionManager.cc.

Referenced by TheEHM().

BESExceptionManager::~BESExceptionManager (  )  [protected, virtual]

Definition at line 57 of file BESExceptionManager.cc.


Member Function Documentation

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.

Parameters:
e excption to be managed
dhi information related to request and response
Returns:
status after exception is handled
See also:
BESException

BESIncorrectException

BESDatabaseException

BESContainerStorageException

BESKeysException

BESLogException

BESHandlerException

BESResponseException

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().

Here is the call graph for this function:

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.

Parameters:
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().

Here is the call graph for this function:

BESExceptionManager * BESExceptionManager::TheEHM (  )  [static]

Definition at line 213 of file BESExceptionManager.cc.

References BESExceptionManager().

Referenced by BESInterface::exception_manager(), TestModule::initialize(), and BESDapModule::initialize().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Aug 29 03:02:49 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.5.2