CppEphem
Public Member Functions | Private Attributes | List of all members
CEExceptionHandler Class Reference

Definition at line 30 of file CEException.h.

Public Member Functions

 CEExceptionHandler ()
 
 CEExceptionHandler (const std::string &origin, const std::string &message, const std::string &type="<no type>")
 Generates and returns the error message. More...
 
virtual void message (const std::string &msg)
 Overwrite the error message. More...
 
virtual const char * message (void) const noexcept
 Return the message passed by the user. More...
 
virtual void message_append (const std::string &msg)
 Append a string to the end of the message. More...
 
virtual const char * trace (void) const noexcept
 Return the backtrace string. More...
 
virtual const char * what () const noexcept
 Generates and returns the error message. More...
 
virtual ~CEExceptionHandler () noexcept
 

Private Attributes

std::string backtrace_
 
std::string full_msg_
 
std::string message_
 
std::string origin_
 
std::string type_
 

#include <CEException.h>

Inheritance diagram for CEExceptionHandler:
Inheritance graph
[legend]
Collaboration diagram for CEExceptionHandler:
Collaboration graph
[legend]

Constructor & Destructor Documentation

◆ CEExceptionHandler() [1/2]

CEExceptionHandler::CEExceptionHandler ( )
inline

Definition at line 50 of file CEException.h.

◆ CEExceptionHandler() [2/2]

CEExceptionHandler::CEExceptionHandler ( const std::string &  origin,
const std::string &  message,
const std::string &  type = "<no type>" 
)

Generates and returns the error message.

Returns
Formatted error message

Definition at line 33 of file CEException.cpp.

◆ ~CEExceptionHandler()

virtual CEExceptionHandler::~CEExceptionHandler ( )
inlinevirtualnoexcept

Definition at line 66 of file CEException.h.

Member Function Documentation

◆ message() [1/2]

void CEExceptionHandler::message ( const std::string &  msg)
virtual

Overwrite the error message.

Parameters
[in]msgError message

Definition at line 73 of file CEException.cpp.

◆ message() [2/2]

const char * CEExceptionHandler::message ( void  ) const
virtualnoexcept

Return the message passed by the user.

Definition at line 82 of file CEException.cpp.

◆ message_append()

void CEExceptionHandler::message_append ( const std::string &  msg)
virtual

Append a string to the end of the message.

Parameters
[in]msgError message to be appended

Definition at line 63 of file CEException.cpp.

◆ trace()

const char * CEExceptionHandler::trace ( void  ) const
virtualnoexcept

Return the backtrace string.

Definition at line 91 of file CEException.cpp.

◆ what()

const char * CEExceptionHandler::what ( ) const
virtualnoexcept

Generates and returns the error message.

Returns
Formatted error message

Definition at line 48 of file CEException.cpp.

Member Data Documentation

◆ backtrace_

std::string CEExceptionHandler::backtrace_
private

Definition at line 77 of file CEException.h.

◆ full_msg_

std::string CEExceptionHandler::full_msg_
mutableprivate

Definition at line 78 of file CEException.h.

◆ message_

std::string CEExceptionHandler::message_
private

Definition at line 76 of file CEException.h.

◆ origin_

std::string CEExceptionHandler::origin_
private

Definition at line 74 of file CEException.h.

◆ type_

std::string CEExceptionHandler::type_
private

Definition at line 75 of file CEException.h.


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