Previous Up Next

Appendix A  Error codes

The values of type Perror_t are:

NameValueMeaning
P_OK0No error
P_ERR-1Some error

The values of type PerrCode_t are listed below. The “Has location” field indicates whether the parse descriptor contains a corresponding location in the source file.

NameHas locationMeaning
P_NOT_PARSEDNoData not yet parsed
P_NO_ERRNoValue read, no error detected
P_SKIPPEDNo 
P_UNEXPECTED_ERRNo 
P_BAD_PARAMNo 
P_SYS_ERRNo 
P_IO_ERRNo 
P_CHKPOINT_ERRNo 
P_COMMIT_ERRNo 
P_RESTORE_ERRNo 
P_ALLOC_ERRNo 
P_FORWARD_ERRNo 
P_PANIC_SKIPPEDNoValue skipped because of panic
P_FMT_EMPTY_DELIM_ERRNo 
P_INVALID_FUNCTION_CALLNo 
P_SMART_NODE_ERRNoGeneral error relating to smart nodes
P_FAILWITH_ERRNoError requiring an ocaml exception
NameHas locationMeaning
P_USER_CONSTRAINT_VIOLATIONYes 
P_MISSING_LITERALYes 
   
P_ARRAY_ELEM_ERRYes 
P_ARRAY_SEP_ERRYes 
P_ARRAY_TERM_ERRYes 
P_ARRAY_SIZE_ERRYes 
P_ARRAY_SEP_TERM_SAME_ERRYes 
P_ARRAY_USER_CONSTRAINT_ERRYes 
P_ARRAY_MIN_BIGGER_THAN_MAX_ERRYes 
P_ARRAY_MIN_NEGATIVEYes 
P_ARRAY_MAX_NEGATIVEYes 
P_ARRAY_EXTRA_BEFORE_SEPYes 
P_ARRAY_EXTRA_BEFORE_TERMYes 
   
P_STRUCT_FIELD_ERRYes 
P_STRUCT_EXTRA_BEFORE_SEPYes 
P_UNION_MATCH_ERRYes 
P_OPTION_MATCH_ERRYes 
P_ENUM_MATCH_ERRYes 
P_TYPEDEF_CONSTRAINT_ERRYes 
   
P_AT_EOFYes 
P_AT_EORYes 
P_EXTRA_BEFORE_EORYes 
P_EOF_BEFORE_EORYes 
P_COUNT_MAX_LIMITYes 
P_RANGEYes 
   
P_INVALID_A_NUMYesInvalid ASCII number
P_INVALID_E_NUMYesInvalid EBCDIC number
P_INVALID_EBC_NUMYesInvalid EBC number
P_INVALID_BCD_NUMYesInvalid BCD number
   
P_INVALID_CHARSETYes 
P_INVALID_WIDTHYes 
   
P_CHAR_LIT_NOT_FOUNDYes 
P_STR_LIT_NOT_FOUNDYes 
P_REGEXP_NOT_FOUNDYes 
P_INVALID_REGEXPYes 
P_WIDTH_NOT_AVAILABLEYes 
P_INVALID_TIMESTAMPYes 
P_INVALID_DATEYes 
P_INVALID_TIMEYes 
P_INVALID_IPYes 
P_INVALID_IP_RANGEYes 

Previous Up Next