Reduct  v4.0.5-1-g4851deb
A functional and immutable language.
Loading...
Searching...
No Matches
reduct_error_t Struct Reference

Error structure. More...

#include <error.h>

Collaboration diagram for reduct_error_t:

Data Fields

const char * input
 The input buffer.
 
size_t inputLength
 The total length of the input buffer.
 
const char * path
 The path to the file that caused the error.
 
size_t regionLength
 The length of the region that caused the error.
 
size_t index
 The index of the region in the input buffer that caused the error.
 
jmp_buf jmp
 
reduct_error_type_t type
 The type of the error.
 
char message [REDUCT_ERROR_MAX_LEN]
 
struct reduct_error * prev
 Previous error handler in the stack.
 
struct reduct * reduct
 The owning Reduct structure.
 
reduct_error_frame_t frames [REDUCT_ERROR_BACKTRACE_MAX]
 Backtrace frames for the error.
 
uint8_t frameCount
 The number of backtrace frames.
 

Detailed Description

Error structure.

Definition at line 54 of file error.h.

Field Documentation

◆ input

const char* reduct_error_t::input

The input buffer.

Definition at line 56 of file error.h.

◆ inputLength

size_t reduct_error_t::inputLength

The total length of the input buffer.

Definition at line 57 of file error.h.

◆ path

const char* reduct_error_t::path

The path to the file that caused the error.

Definition at line 58 of file error.h.

◆ regionLength

size_t reduct_error_t::regionLength

The length of the region that caused the error.

Definition at line 59 of file error.h.

◆ index

size_t reduct_error_t::index

The index of the region in the input buffer that caused the error.

Definition at line 60 of file error.h.

◆ jmp

jmp_buf reduct_error_t::jmp

Definition at line 61 of file error.h.

◆ type

reduct_error_type_t reduct_error_t::type

The type of the error.

Definition at line 62 of file error.h.

◆ message

char reduct_error_t::message[REDUCT_ERROR_MAX_LEN]

Definition at line 63 of file error.h.

◆ prev

struct reduct_error* reduct_error_t::prev

Previous error handler in the stack.

Definition at line 64 of file error.h.

◆ reduct

struct reduct* reduct_error_t::reduct

The owning Reduct structure.

Definition at line 65 of file error.h.

◆ frames

Backtrace frames for the error.

Definition at line 66 of file error.h.

◆ frameCount

uint8_t reduct_error_t::frameCount

The number of backtrace frames.

Definition at line 67 of file error.h.


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