Ion C
C library for Ion
Loading...
Searching...
No Matches
ion_errors.h File Reference

Go to the source code of this file.

Macros

#define ERROR_CODE(name, val)

Typedefs

typedef enum ion_error_code iERR

Enumerations

enum  ion_error_code { IERR_NOT_IMPL = -1 , IERR_MAX_ERROR_CODE }

Functions

ION_API_EXPORT const char * ion_error_to_str (iERR err)

Macro Definition Documentation

◆ ERROR_CODE

#define ERROR_CODE ( name,
val )
Value:
name = val,

Enumeration Type Documentation

◆ ion_error_code

define the Ion error code enumeration.

Enumerator
IERR_MAX_ERROR_CODE 

Unexpected end of stream. E.g. reader reached EOF before closing struct } Usually caused by invalid application calling sequence. E.g. read_int when get_type returns string. Usually caused by invalid application calling sequence. E.g. read_int when is_null is true. Invalid Ion syntax during parsing Ion text input. Corrupted binary data (not comforms to Ion spec. Container nesting exceeded the configured max_container_depth, or exceeded ION_MAX_RECURSION_DEPTH within one of the library's recursive helpers.

Function Documentation

◆ ion_error_to_str()

ION_API_EXPORT const char * ion_error_to_str ( iERR err)

Gets a static string representation of an error code.