Classes | |
class | Glib::Util::Exception |
Base exception class. More... | |
Namespaces | |
namespace | Glib |
namespace | Glib::Util |
Defines | |
#define | GLIBMM_CATCH_AND_RETURN_NOX(a_value) |
#define | GLIBMM_CATCH_NOX |
#define | GLIBMM_TRY try { |
#define | RETHROW_EXCEPTION(exception) LOG_EXCEPTION ("Caught and rethrowing exception: " << exception.what() << "\n") |
#define | RETURN_IF_FAIL(expression) |
#define | RETURN_VAL_IF_FAIL(expression, value) |
#define | THROW(a_reason) |
#define | THROW_EMPTY |
#define | THROW_EXCEPTION(type, message) |
#define | THROW_IF_FAIL(a_cond) |
#define | THROW_IF_FAIL2(a_cond, a_reason) |
#define | THROW_IF_FAIL3(a_cond, type, a_reason) |
#define | TRACE_EXCEPTION(exception) LOG_EXCEPTION ("Caught exception: " << exception.what () << "\n") |
#define GLIBMM_CATCH_AND_RETURN_NOX | ( | a_value | ) |
#define GLIBMM_CATCH_NOX |
#define GLIBMM_TRY try { |
#define RETHROW_EXCEPTION | ( | exception | ) | LOG_EXCEPTION ("Caught and rethrowing exception: " << exception.what() << "\n") |
#define RETURN_IF_FAIL | ( | expression | ) |
if (!(expression)) { \ LOG_ERROR ("Assertion " << #expression << " failed. Returning.\n") ; \ return ; \ }
#define RETURN_VAL_IF_FAIL | ( | expression, | ||
value | ||||
) |
if (!(expression)) { \ LOG_ERROR ("Assertion " << #expression << " failed. Returning " << #value << "\n") ; \ return value ; \ }
#define THROW | ( | a_reason | ) |
LOG_EXCEPTION ("Raised exception: "<< (Glib::ustring (a_reason)) << "\n"); \ throw Glib::Util::Exception (Glib::ustring (a_reason)) ;
#define THROW_EMPTY |
LOG_EXCEPTION ("Raised empty exception" << endl) ; \ throw ;
#define THROW_EXCEPTION | ( | type, | ||
message | ||||
) |
LOG_EXCEPTION ("Raised " << #type << ": "<< message<< "\n") ; \ throw type (message) ;
#define THROW_IF_FAIL | ( | a_cond | ) |
if (!(a_cond)) { \ LOG_EXCEPTION ("Condition (" << #a_cond << ") failed; raising exception\n" ) ;\ throw Glib::Util::Exception \ (Glib::ustring ("Assertion failed: ") + #a_cond) ;\ }
#define THROW_IF_FAIL2 | ( | a_cond, | ||
a_reason | ||||
) |
if (!(a_cond)) { \ LOG_EXCEPTION ("Condition (" << #a_cond << ") failed; raising exception " << a_reason <<"\n");\ throw Glib::Util::Exception (a_reason) ;\ }
#define THROW_IF_FAIL3 | ( | a_cond, | ||
type, | ||||
a_reason | ||||
) |
if (!(a_cond)) { \ LOG_EXCEPTION ("Condition (" << #a_cond << ") failed; raising exception " << #type << \ << ": " << a_reason << "\n" ) ; throw type (a_reason) ;\ }
#define TRACE_EXCEPTION | ( | exception | ) | LOG_EXCEPTION ("Caught exception: " << exception.what () << "\n") |