OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
BESInternalFatalError Class Reference

exception thrown if an internal error is found and is fatal to the BES More...

#include <BESInternalFatalError.h>

Inheritance diagram for BESInternalFatalError:
Inheritance graph
Collaboration diagram for BESInternalFatalError:
Collaboration graph

Public Member Functions

 BESInternalFatalError (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 ~BESInternalFatalError ()
 

Protected Member Functions

 BESInternalFatalError ()
 

Protected Attributes

string _file
 
unsigned int _line
 
string _msg
 
unsigned int _type
 

Detailed Description

exception thrown if an internal error is found and is fatal to the BES

Definition at line 41 of file BESInternalFatalError.h.

Constructor & Destructor Documentation

◆ BESInternalFatalError() [1/2]

BESInternalFatalError::BESInternalFatalError ( )
inlineprotected

Definition at line 44 of file BESInternalFatalError.h.

◆ BESInternalFatalError() [2/2]

BESInternalFatalError::BESInternalFatalError ( const string &  s,
const string &  file,
unsigned int  line 
)
inline

Definition at line 46 of file BESInternalFatalError.h.

◆ ~BESInternalFatalError()

virtual BESInternalFatalError::~BESInternalFatalError ( )
inlinevirtual

Definition at line 51 of file BESInternalFatalError.h.

Member Function Documentation

◆ dump()

virtual void BESInternalFatalError::dump ( ostream &  strm) const
inlinevirtual

Displays debug information about this object.

dumps information about this object

Parameters
strmoutput 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.

Parameters
strmC++ i/o stream to dump the information to

Reimplemented from BESError.

Definition at line 53 of file BESInternalFatalError.h.

References BESError::dump(), BESIndent::Indent(), and BESIndent::UnIndent().

Here is the call graph for this function:

◆ get_error_type()

virtual int BESError::get_error_type ( )
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

Returns
context string

Definition at line 120 of file BESError.h.

References BESError::_type, and BESError::dump().

Referenced by BESInfo::add_exception(), BESApacheInterface::exception_manager(), BESExceptionManager::handle_exception(), and BESDapError::handleException().

Here is the call graph for this function:

◆ get_file()

virtual string BESError::get_file ( )
inlinevirtualinherited

get the file name where the exception was thrown

Returns
file name

Definition at line 96 of file BESError.h.

References BESError::_file.

Referenced by BESInfo::add_exception(), TcpSocket::listen(), and BESKeys::~BESKeys().

◆ get_line()

virtual int BESError::get_line ( )
inlinevirtualinherited

get the line number where the exception was thrown

Returns
line number

Definition at line 101 of file BESError.h.

References BESError::_line.

Referenced by BESInfo::add_exception(), TcpSocket::listen(), and BESKeys::~BESKeys().

◆ get_message()

◆ set_error_type()

virtual void BESError::set_error_type ( int  type)
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.

Parameters
typethe 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 112 of file BESError.h.

Referenced by BESDapError::handleException(), and BESApacheInterface::validate_data_request().

◆ set_message()

virtual void BESError::set_message ( const string &  msg)
inlinevirtualinherited

set the error message for this exception

Parameters
msgmessage string

Definition at line 86 of file BESError.h.

Referenced by BESDapError::handleException().

Member Data Documentation

◆ _file

string BESError::_file
protectedinherited

Definition at line 56 of file BESError.h.

Referenced by BESError::dump(), and BESError::get_file().

◆ _line

unsigned int BESError::_line
protectedinherited

Definition at line 57 of file BESError.h.

Referenced by BESError::dump(), and BESError::get_line().

◆ _msg

string BESError::_msg
protectedinherited

Definition at line 54 of file BESError.h.

Referenced by BESError::dump(), and BESError::get_message().

◆ _type

unsigned int BESError::_type
protectedinherited

Definition at line 55 of file BESError.h.

Referenced by BESError::dump(), and BESError::get_error_type().


The documentation for this class was generated from the following file: