#include <CarobException.hpp>
Inheritance diagram for CarobNS::UnexpectedException:
Public Member Functions | |
UnexpectedException (const std::wstring &messagePrm, const std::wstring &SQLStatePrm=DEFAULTSQLSTATE, CarobException *causePrm=0, int vendorPrm=DEFAULTVENDORCODE) | |
Constructs an 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 | ( | const std::wstring & | messagePrm, | |
const std::wstring & | SQLStatePrm = DEFAULTSQLSTATE , |
|||
CarobException * | causePrm = 0 , |
|||
int | vendorPrm = DEFAULTVENDORCODE | |||
) | [inline] |
Constructs an UnexpectedException with the given message.
messagePrm | the detailed user-friendly message | |
SQLStatePrm | the SQL2 standard error code. | |
causePrm | the exception that generated this one, if any. | |
vendorPrm | the (deprecated) SQL1 error code |
static void CarobNS::UnexpectedException::convertUnexpected | ( | ) | [static] |
std::unexpected handler.
Throws an Unexpected exception instead of terminating the program