Workspace 7.0.2
|
#include <Workspace/Application/LanguageUtils/errorchecks.h>
Public Types | |
typedef std::function< FailBehaviour(FailType type, const char *condition, const char *message, const char *file, int line)> | AssertHandler |
enum | FailBehaviour { Halt , Continue } |
enum | FailType { Logic , Runtime } |
Static Public Member Functions | |
static QString | generateDefaultErrorText (const QString &prefix, FailType type, const char *condition, const QString &message, const char *file, int line) |
static QString | generateDefaultErrorText (FailType type, const char *condition, const char *message, const char *file, int line) |
static AssertHandler | getHandler () |
static FailBehaviour | reportFailure (FailType type, const char *condition, const char *file, int line, const char *message) |
static void | setHandler (AssertHandler handler) |
Protected Member Functions | |
Assert () | |
Class for wrapping assertion behaviour
typedef std::function<FailBehaviour(FailType type, const char* condition, const char* message, const char* file, int line)> AssertHandler |
enum FailBehaviour |
enum FailType |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
handler | Function for handling asserts. |