Previous: , Up: Error methods macros and codes   [Contents][Index]


27.4 Internal error codes

An internal error code may be one of two things: First, it can be an error code that arises from an internal Libmarpa programming issue (in other words, something happening in the code that was not supposed to be able to happen.) Second, it can be an error code that only occurs when a method from Libmarpa’s internal interface is used. Both kinds of internal error message share one common trait — users of the Libmarpa’s external interface should never see them.

Internal error messages require someone with knowledge of the Libmarpa internals to follow up on them. They usually do not have descriptions or suggested messages.

Accessor macro: int MARPA_ERR_AHFA_IX_NEGATIVE

Numeric value: 1.

Accessor macro: int MARPA_ERR_AHFA_IX_OOB

Numeric value: 2.

Accessor macro: int MARPA_ERR_ANDID_NEGATIVE

Numeric value: 3.

Accessor macro: int MARPA_ERR_ANDID_NOT_IN_OR

Numeric value: 4.

Accessor macro: int MARPA_ERR_ANDIX_NEGATIVE

Numeric value: 5.

Accessor macro: int MARPA_ERR_BOCAGE_ITERATION_EXHAUSTED

Numeric value: 7.

Accessor macro: int MARPA_ERR_DEVELOPMENT

“Development” errors were used heavily during Libmarpa’s development, when it was not yet clear how precisely to classify every error condition. Unless they are using a developer’s version, users of the external interface should never see development errors.

Development errors have an error string associated with them. The error string is a short 7-bit ASCII error string that describes the error. Numeric value: 9. Suggested message: "Development error, see string".

Accessor macro: int MARPA_ERR_DUPLICATE_AND_NODE

Numeric value: 10.

Accessor macro: int MARPA_ERR_YIM_ID_INVALID

Numeric value: 14.

Accessor macro: int MARPA_ERR_INTERNAL

A “catchall” internal error. Numeric value: 19.

Accessor macro: int MARPA_ERR_INVALID_AHFA_ID

The AHFA ID was invalid. There are no AHFAs any more, so this message should not occur. Numeric value: 20.

Accessor macro: int MARPA_ERR_INVALID_AIMID

The AHM ID was invalid. The term “AIMID” is a legacy of earlier implementations and must be kept for backward compatibility. Numeric value: 21.

Accessor macro: int MARPA_ERR_INVALID_IRLID

Numeric value: 23.

Accessor macro: int MARPA_ERR_INVALID_NSYID

Numeric value: 24.

Accessor macro: int MARPA_ERR_NOOKID_NEGATIVE

Numeric value: 33.

Accessor macro: int MARPA_ERR_NOT_TRACING_COMPLETION_LINKS

Numeric value: 35.

Accessor macro: int MARPA_ERR_NOT_TRACING_LEO_LINKS

Numeric value: 36.

Accessor macro: int MARPA_ERR_NOT_TRACING_TOKEN_LINKS

Numeric value: 37.

Accessor macro: int MARPA_ERR_NO_AND_NODES

Numeric value: 38.

Accessor macro: int MARPA_ERR_NO_OR_NODES

Numeric value: 40.

Accessor macro: int MARPA_ERR_NO_TRACE_YS

Numeric value: 46.

Accessor macro: int MARPA_ERR_NO_TRACE_PIM

Numeric value: 47.

Accessor macro: int MARPA_ERR_NO_TRACE_YIM

Numeric value: 45.

Accessor macro: int MARPA_ERR_NO_TRACE_SRCL

Numeric value: 48.

Accessor macro: int MARPA_ERR_ORID_NEGATIVE

Numeric value: 51.

Accessor macro: int MARPA_ERR_OR_ALREADY_ORDERED

Numeric value: 52.

Accessor macro: int MARPA_ERR_PIM_IS_NOT_LIM

Numeric value: 55.

Accessor macro: int MARPA_ERR_SOURCE_TYPE_IS_NONE

Numeric value: 70.

Accessor macro: int MARPA_ERR_SOURCE_TYPE_IS_TOKEN

Numeric value: 71.

Accessor macro: int MARPA_ERR_SOURCE_TYPE_IS_COMPLETION

Numeric value: 68.

Accessor macro: int MARPA_ERR_SOURCE_TYPE_IS_LEO

Numeric value: 69.

Accessor macro: int MARPA_ERR_SOURCE_TYPE_IS_AMBIGUOUS

Numeric value: 67.

Accessor macro: int MARPA_ERR_SOURCE_TYPE_IS_UNKNOWN

Numeric value: 72.

Accessor macro: int MARPA_ERR_RECCE_IS_INCONSISTENT

Numeric value: 95. Suggested message: "The recognizer is inconsistent".


Previous: , Up: Error methods macros and codes   [Contents][Index]