Skip to content

Group error

Modules > error

Functions and constants for error handling.

Public Types

Type Name
typedef void(* tirexAbortCallback
typedef enum tirexError_enum tirexError
Categorizes different classes of error.
enum tirexError_enum
Categorizes different classes of error.

Public Functions

Type Name
TIREX_TRACKER_EXPORT void tirexSetAbortCallback (tirexAbortCallback callback)
Set a callback that should be used in case the program needs to abort.
TIREX_TRACKER_EXPORT void tirexSetAbortLevel (tirexLogLevel level)

Public Types Documentation

typedef tirexAbortCallback

typedef void(* tirexAbortCallback) (const char *message);

typedef tirexError

Categorizes different classes of error.

typedef enum tirexError_enum tirexError;


enum tirexError_enum

Categorizes different classes of error.

enum tirexError_enum {
    TIREX_SUCCESS = 0,
    TIREX_INVALID_ARGUMENT = 1
};


Public Functions Documentation

function tirexSetAbortCallback

Set a callback that should be used in case the program needs to abort.

TIREX_TRACKER_EXPORT void tirexSetAbortCallback (
    tirexAbortCallback callback
) 

Per default, abort() is used.

Parameters:

  • callback

function tirexSetAbortLevel

TIREX_TRACKER_EXPORT void tirexSetAbortLevel (
    tirexLogLevel level
)