forb
Public Member Functions | List of all members
forb::exception Class Reference

Custom exception type used in FORB library. More...

#include <exception.hpp>

Inheritance diagram for forb::exception:

Public Member Functions

 exception (const std::string &cause)
 Constructs a new exception; the first argument represents the action that was performed when the exception was thrown, while the second one is a more detailed description. More...
 
 ~exception () override=default
 Virtual destructor.
 
 exception (exception &&)=default
 This class supports moving.
 
 exception (const exception &)=default
 This class supports copying.
 
const char * what () const noexcept override
 Returns the cause of the exception.
 

Detailed Description

Custom exception type used in FORB library.

Constructor & Destructor Documentation

§ exception()

forb::exception::exception ( const std::string &  cause)
inlineexplicit

Constructs a new exception; the first argument represents the action that was performed when the exception was thrown, while the second one is a more detailed description.


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