Carna  Version 3.3.2
Public Member Functions | Public Attributes | List of all members
Carna::base::CarnaException Class Reference

Base exception class that provides distinct attributes for the type (category) of the exception, a message and an optional details section. More...

#include <CarnaException.h>

+ Inheritance diagram for Carna::base::CarnaException:

Public Member Functions

 CarnaException (const std::string &type, const std::string &message, const std::string &details="")
 Initializes the attributes plainly from the arguments.
 
 CarnaException (const std::logic_error &error, const std::string &details="")
 Initializes the type as ''Assertion Error'' and the message from the given exception.
 
 CarnaException (const std::runtime_error &error, const std::string &details="")
 Initializes the type as ''Unhandled Exception'' and the message from the given exception.
 

Public Attributes

const std::string type
 Tells the type (category) of this exception.
 
const std::string message
 Tells the message of this exception.
 
const std::string details
 Tells the details of this exception. May be empty.
 

Detailed Description

Base exception class that provides distinct attributes for the type (category) of the exception, a message and an optional details section.

Author
Leonid Kostrykin
Date
5.3.13 - 19.3.13

Definition at line 46 of file CarnaException.h.


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