cpe::exception_cpe Class Reference

General exception class. More...

+ Collaboration diagram for cpe::exception_cpe:

Public Member Functions

 exception_cpe ()
 empty constructor More...
 
 exception_cpe (const std::string &msg, const std::string &file, const std::string &caller, const int &line, const std::string &backtrace_arg)
 constructor with error information More...
 
std::string info () const
 return error message More...
 
std::string info_backtrace () const
 get backtrace More...
 
std::string report_exception () const
 export exception informations More...
 

Private Attributes

std::string message
 error message storage More...
 
std::string caller
 caller name storage More...
 
std::string file
 file name storage More...
 
std::string line
 error line storage More...
 
std::string backtrace_msg
 backtrace error message More...
 

Detailed Description

General exception class.

Constructor & Destructor Documentation

cpe::exception_cpe::exception_cpe ( )

empty constructor

cpe::exception_cpe::exception_cpe ( const std::string &  msg,
const std::string &  file,
const std::string &  caller,
const int &  line,
const std::string &  backtrace_arg 
)

constructor with error information

References line.

Member Function Documentation

std::string cpe::exception_cpe::info ( ) const

return error message

References caller, file, line, and message.

Referenced by report_exception().

std::string cpe::exception_cpe::info_backtrace ( ) const

get backtrace

References backtrace_msg.

Referenced by report_exception().

std::string cpe::exception_cpe::report_exception ( ) const

export exception informations

References info(), and info_backtrace().

Referenced by application_qt::notify().

+ Here is the call graph for this function:

Member Data Documentation

std::string cpe::exception_cpe::backtrace_msg
private

backtrace error message

Referenced by info_backtrace().

std::string cpe::exception_cpe::caller
private

caller name storage

Referenced by info().

std::string cpe::exception_cpe::file
private

file name storage

Referenced by info().

std::string cpe::exception_cpe::line
private

error line storage

Referenced by exception_cpe(), and info().

std::string cpe::exception_cpe::message
private

error message storage

Referenced by info().


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