Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

BESDapHandlerException Class Reference

#include <BESDapHandlerException.h>

Inheritance diagram for BESDapHandlerException:

[legend]
Collaboration diagram for BESDapHandlerException:
[legend]
List of all members.

Public Member Functions

 BESDapHandlerException (const string &s, const string &file, int line, ErrorCode ec)
virtual ~BESDapHandlerException ()
int get_error_code ()
virtual void set_message (const string &msg)
 set the error message for this exception
virtual string get_message ()
 get the error message for this exception
virtual string get_file ()
 get the file name where the exception was thrown
virtual int get_line ()
 get the line number where the exception was thrown
virtual void set_context (const string &context)
 Set the context name of the error class.
virtual string get_context ()
 Return the context name of the error class.
virtual void set_return_code (int return_code)
 Set the return code for this particular error class.
virtual int get_return_code ()
 Return the return code for this error class.
virtual void dump (ostream &strm) const
 Displays debug information about this object.

Static Public Member Functions

static int handleException (BESException &e, BESDataHandlerInterface &dhi)
 handles exceptions if the error context is set to dap2

Protected Member Functions

 BESDapHandlerException ()

Protected Attributes

string _msg
string _context
int _return_code
string _file
int _line

Constructor & Destructor Documentation

BESDapHandlerException::BESDapHandlerException  )  [inline, protected]
 

BESDapHandlerException::BESDapHandlerException const string &  s,
const string &  file,
int  line,
ErrorCode  ec
[inline]
 

virtual BESDapHandlerException::~BESDapHandlerException  )  [inline, virtual]
 


Member Function Documentation

void BESException::dump ostream &  strm  )  const [virtual, inherited]
 

Displays debug information about this object.

Parameters:
strm output stream to use to dump the contents of this object

Implements BESObj.

Reimplemented in BESContainerStorageException.

virtual string BESException::get_context  )  [inline, virtual, inherited]
 

Return the context name of the error class.

Gives the error context, such as response or request or transmit

Returns:
context string

int BESDapHandlerException::get_error_code  )  [inline]
 

virtual string BESException::get_file  )  [inline, virtual, inherited]
 

get the file name where the exception was thrown

Returns:
file name

virtual int BESException::get_line  )  [inline, virtual, inherited]
 

get the line number where the exception was thrown

Returns:
line number

virtual string BESException::get_message  )  [inline, virtual, inherited]
 

get the error message for this exception

Returns:
error message

virtual int BESException::get_return_code  )  [inline, virtual, inherited]
 

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

Returns:
context string

int BESDapHandlerException::handleException BESException e,
BESDataHandlerInterface dhi
[static]
 

handles exceptions if the error context is set to dap2

If the error context from the BESContextManager is set to dap2 then handle all exceptions by returning transmitting them as dap2 error messages.

Parameters:
e exception to be handled
dhi structure that holds request and response information

virtual void BESException::set_context const string &  context  )  [inline, virtual, inherited]
 

Set the context name of the error class.

Gives the error context, such as response or request or transmit

Parameters:
context name of the context

virtual void BESException::set_message const string &  msg  )  [inline, virtual, inherited]
 

set the error message for this exception

Parameters:
s message string

virtual void BESException::set_return_code int  return_code  )  [inline, virtual, inherited]
 

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.

Parameters:
return_code code used when returning from the error


Member Data Documentation

string BESException::_context [protected, inherited]
 

string BESException::_file [protected, inherited]
 

int BESException::_line [protected, inherited]
 

string BESException::_msg [protected, inherited]
 

int BESException::_return_code [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Thu May 3 23:10:58 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.4.4