libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
crn::ExceptionRuntime Class Reference

A generic runtime error. More...

#include <CRNException.h>

+ Inheritance diagram for crn::ExceptionRuntime:
+ Collaboration diagram for crn::ExceptionRuntime:

Public Member Functions

 ExceptionRuntime () noexcept
 Default constructor. More...
 
 ExceptionRuntime (const crn::StringUTF8 &msg) noexcept
 Constructor with a message. More...
 
 ExceptionRuntime (const char *msg) noexcept
 Constructor with a message. More...
 
- Public Member Functions inherited from crn::Exception
 Exception () noexcept
 Default constructor. More...
 
 Exception (const StringUTF8 &msg) noexcept
 Constructor with a message. More...
 
 Exception (const char *msg) noexcept
 Constructor with a message. More...
 
 Exception (const Exception &ex) noexcept
 Copy constructor. More...
 
virtual ~Exception () noexceptoverride
 Destructor. More...
 
const std::string & GetContext () const noexcept
 String containing the call stack at the moment of throw. More...
 
const std::string & GetMessage () const noexcept
 String containing a description of the exception. More...
 
virtual const char * what () const noexceptoverride
 String containing a description of the exception. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from crn::Exception
static void SetDefaultHandler ()
 Sets the default exception handler to print message and context to the standard error. More...
 
static bool & TraceStack ()
 Shall the stack be traced at each exception thrown? (very slow) More...
 

Detailed Description

A generic runtime error.

Definition at line 131 of file CRNException.h.

Constructor & Destructor Documentation

ExceptionRuntime::ExceptionRuntime ( )
explicitnoexcept

Default constructor.

Default constructor

Definition at line 260 of file CRNException.cpp.

ExceptionRuntime::ExceptionRuntime ( const crn::StringUTF8 msg)
explicitnoexcept

Constructor with a message.

Constructor with a message

Definition at line 262 of file CRNException.cpp.

ExceptionRuntime::ExceptionRuntime ( const char *  msg)
explicitnoexcept

Constructor with a message.

Constructor with a message

Definition at line 264 of file CRNException.cpp.


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