m2etis  0.4
m2etis::util::m2exception Struct Reference

#include <Exceptions.h>

Inheritance diagram for m2etis::util::m2exception:
Inheritance graph

Public Member Functions

M2ETIS_API void writeLog ()
 Writes the exception's logmessage. More...
 
M2ETIS_API int getErrorcode ()
 Returns the exception's errorcode or -1 if no errorcode is present. More...
 
virtual M2ETIS_API const char * what () const throw ()
 Overrides std::exception method to output message to console. More...
 
M2ETIS_API void PassToMain ()
 writes the error message to the ExceptionQueue More...
 

Protected Member Functions

M2ETIS_API m2exception (const util::log::LogLevel loglevel, const std::string &logmodule, const std::string &logmsg, const std::string &file, int line)
 
M2ETIS_API m2exception (const util::log::LogLevel loglevel, const std::string &logmodule, const std::string &logmsg, const std::string &file, int line, int errorcode)
 

Detailed Description

Definition at line 76 of file Exceptions.h.

Constructor & Destructor Documentation

M2ETIS_API m2etis::util::m2exception::m2exception ( const util::log::LogLevel  loglevel,
const std::string &  logmodule,
const std::string &  logmsg,
const std::string &  file,
int  line 
)
protected
M2ETIS_API m2etis::util::m2exception::m2exception ( const util::log::LogLevel  loglevel,
const std::string &  logmodule,
const std::string &  logmsg,
const std::string &  file,
int  line,
int  errorcode 
)
protected

Member Function Documentation

M2ETIS_API int m2etis::util::m2exception::getErrorcode ( )

Returns the exception's errorcode or -1 if no errorcode is present.

M2ETIS_API void m2etis::util::m2exception::PassToMain ( )

writes the error message to the ExceptionQueue

virtual M2ETIS_API const char* m2etis::util::m2exception::what ( ) const
throw (
)
virtual

Overrides std::exception method to output message to console.

M2ETIS_API void m2etis::util::m2exception::writeLog ( )

Writes the exception's logmessage.


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