5 #ifndef FORBCC_EXCEPTION_H 6 #define FORBCC_EXCEPTION_H 21 exception(
const std::string &when,
const std::string &cause)
23 _what =
"Error during " + when +
": " + cause +
".";
42 const char *
what() const noexcept
override {
50 #endif //FORBCC_EXCEPTION_H Definition: code_ostream.hpp:11
const char * what() const noexcept override
Returns the cause of the exception.
Definition: exception.hpp:42
Custom exception type used in the FORB IDL compiler.
Definition: exception.hpp:14
~exception() override=default
Virtual destructor.
exception(const std::string &when, const std::string &cause)
Constructs a new exception; the first argument represents the action that was performed when the exce...
Definition: exception.hpp:21