libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
GblError Struct Reference

#include <gimbal_error.h>

Data Fields

char message [128]
 
GblSourceLocation srcLocation
 
const GblErrorDomainpDomain
 
GblEnum code
 

Detailed Description

Low-level error structure.

GblError is a low-level error structure which represents a particular error code, a message, a source location, and a "domain" for the error, which is what is used to distinguish different categories or enum codes.

GblError uses thread-local storage so that every thread has its own unique pending error, which can be assigned and manipulated independently.

See also
GblErrorDomain

Definition at line 48 of file gimbal_error.h.

Field Documentation

◆ message

char GblError::message[128]

Custom detailed error string.

Definition at line 49 of file gimbal_error.h.

◆ srcLocation

GblSourceLocation GblError::srcLocation

C/C++ source code location.

Definition at line 50 of file gimbal_error.h.

◆ pDomain

const GblErrorDomain* GblError::pDomain

Pointer to the code's domain.

Definition at line 51 of file gimbal_error.h.

◆ code

GblEnum GblError::code

Actual raw error code returned.

Definition at line 52 of file gimbal_error.h.


The documentation for this struct was generated from the following file: