Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
afw_error_s Struct Reference

Adaptive Framework Error. More...

#include <afw_error.h>

Data Fields

afw_xctx_txctx
 
afw_error_code_t code
 Error code.
 
const afw_utf8_z_tsource_z
 File:line in source error was thrown.
 
const afw_utf8_z_tmessage_z
 Message.
 
const afw_compile_value_contextual_tcontextual
 Contextual information or NULL.
 
const afw_utf8_z_trv_source_id_z
 This is the source of the non-zero rv.
 
const afw_utf8_z_trv_decoded_z
 Human readable decode of rv.
 
const afw_utf8_tbacktrace
 If not memory error and afw_os_backtrace() supplies one.
 
afw_size_t parser_cursor
 If syntax error, this is cursor when parse error occurred or 0. More...
 
const afw_utf8_tparser_source
 If syntax error, this is partial/full source or NULL. More...
 
int rv
 If non-zero, this is rc, rv, or any int value related to error.
 
afw_boolean_t recursive_error
 Recursive error.
 
afw_boolean_t recursive_error_in_finally
 Recursive error in finally.
 
afw_utf8_z_t decode_rv_wa [23]
 Place to optionally hold rv_decoded_z.
 
afw_utf8_z_t decode_rv_wa_safety_zero_terminator
 Makes sure there is a zero terminator after decode_rv_wa.
 
afw_utf8_z_t message_wa [255]
 Place to optionally hold message_z.
 
afw_utf8_z_t message_wa_safety_zero_terminator
 Makes sure there is a zero terminator after message_wa.
 

Detailed Description

Adaptive Framework Error.

All but xctx is cleared on AFW_ERROR_CLEAR_PARTIAL().

Definition at line 65 of file afw_error.h.

Field Documentation

◆ parser_cursor

afw_size_t parser_cursor

If syntax error, this is cursor when parse error occurred or 0.

This is a UTF-8 octet cursor at the time the syntax error was discovered.

Use this as an offset in parser_source if it is available.

Definition at line 101 of file afw_error.h.

◆ parser_source

const afw_utf8_t* parser_source

If syntax error, this is partial/full source or NULL.

If this is Not NULL, this is the compiler source that was available at the time of the syntax error.

Definition at line 109 of file afw_error.h.


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