LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
LibCarna::base::LibCarnaException 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 <LibCarnaException.hpp>

+ Inheritance diagram for LibCarna::base::LibCarnaException:

Public Member Functions

 LibCarnaException (const std::string &type, const std::string &message, const std::string &details="")
 Initializes the attributes plainly from the arguments.
 
 LibCarnaException (const std::logic_error &error, const std::string &details="")
 Initializes the type as ''Assertion Error'' and the message from the given exception.
 
 LibCarnaException (const std::runtime_error &error, const std::string &details="")
 Initializes the type as ''Unhandled Exception'' and the message from the given exception.
 
 LibCarnaException (const LibCarnaException &other)
 Instantiates as a copy of the other exception.
 
const charwhat () const
 Tells the message and the details of this 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

Definition at line 48 of file LibCarnaException.hpp.

Member Data Documentation

◆ details

const std::string LibCarna::base::LibCarnaException::details

Tells the details of this exception. May be empty.

Definition at line 85 of file LibCarnaException.hpp.

◆ message

const std::string LibCarna::base::LibCarnaException::message

Tells the message of this exception.

Definition at line 81 of file LibCarnaException.hpp.

◆ type

const std::string LibCarna::base::LibCarnaException::type

Tells the type (category) of this exception.

Definition at line 77 of file LibCarnaException.hpp.


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