#include <CarobException.hpp>
Inheritance diagram for CarobNS::UnexpectedException:
Public Member Functions | |
UnexpectedException (std::wstring s) | |
Constructs a UnexpectedException with the given message. | |
Static Public Member Functions | |
static void | convertUnexpected () |
std::unexpected handler. |
Thus, all functions declared as throwing an exception MUST also declare throw (UnexpectedException)
so that even if an unknown exception is thrown at runtime, we still will catch it with catch (UnexpectedException e)
.
CarobNS::UnexpectedException::UnexpectedException | ( | std::wstring | s | ) | [inline] |
Constructs a UnexpectedException with the given message.
s | error message of the exception |
static void CarobNS::UnexpectedException::convertUnexpected | ( | ) | [static] |
std::unexpected handler.
Throws an Unexpected exception instead of terminating the program