CepGen 1.2.5
Central exclusive processes event generator
|
#include <CepGenAddOns/PythonWrapper/Error.h>
Public Types | |
enum | Type { undefined = -1 , error , fatal } |
Enumeration of exception severities. More... | |
enum class | MessageType { undefined = -1 , debug , verbatim , info , warning } |
Enumeration of message type. More... | |
Public Member Functions | |
Error (const char *, const char *, short) noexcept | |
void | dump (std::ostream *os=nullptr) const noexcept override |
Human-readable dump of the exception. | |
const char * | what () const noexcept override |
template<typename T > | |
const LoggedMessage & | log (T &&lam) noexcept |
Lambda function handler. | |
std::string | message () const |
Human-readable message. | |
const std::string & | from () const |
Origin of the exception. | |
const std::string & | file () const |
File where the exception occured. | |
short | lineNumber () const |
Line number where the exception occured. | |
const MessageType & | type () const |
Message type. | |
std::ostream & | stream () |
Output stream object. | |
Static Public Member Functions | |
static std::string | now () |
Human-readable date/time. | |
Protected Attributes | |
std::ostringstream | message_ |
Message to throw. | |
std::string | from_ |
Origin of the exception. | |
std::string | file_ |
File. | |
short | line_num_ |
Line number. | |
|
stronginherited |
|
inherited |
Enumerator | |
---|---|
undefined | Irregular message. |
error | General non-stopping error. |
fatal | Critical and stopping error. |
Definition at line 28 of file Exception.h.
|
explicitnoexcept |
|
overridevirtualnoexceptinherited |
Implements Message.
Definition at line 41 of file Exception.cpp.
|
noexceptinherited |
|
staticinherited |
Definition at line 23 of file Message.cpp.
|
inherited |
|
overridenoexceptinherited |
Definition at line 36 of file Exception.cpp.