Many CP-AMS and SP-AMS components share a family of related routines known as the pattern library. If an error occurs within the pattern library, a message of the following format is sent to STDERR:
routine-name ==? code 'error-text' [errno= errno] (mode= mode)
where:
routine-name
is the name of the failing library or system routine.
code
is the numeric error code.
error-text
is a brief description associated with the error code.
errno
is the error number returned form a system service call. errno is printed only if the system services call failed.
mode
is the pattern library error mode. 0 is an unrecoverable error; 1 means recovery is possible.
Table of Error Codes
The following table lists the error codes and error text.
| Code | Text | Explanation |
|---|---|---|
| 1 | bad pid | Attempt to reference invalid pattern-id. |
| 2 | out of memory | System error attempting to acquire dynamic memory allocation. |
| 3 | disk access | System error attempting to write to disk. |
| 4 | disk read | System error attempting to read from disk. |
| 5 | database close | System error attempting to close database file. |
| 6 | write db header | System error attempting to write the database header. |
| 7 | db creation | System error attempting to create a new database. |
| 8 | db change size | System error attempting to change the size of the database. |
| 9 | paging | Internal memory management error. |
| 10 | open db | System error attempting to open an existing database. |
| 11 | header or indices | Invalid database header or index tables. |
| 12 | bad file id | Invalid database file identifier in header. |
| 13 | bad version | Unrecognized database version number in header. |
| 14 | index table full | Maximum number of patterns or actions exceeded. |
| 15 | db conversion error | Internal error converting a pre-AMS level 3R1 database to the current database format. |
| 16 | bad mask definition | Bad mask definition found during pattern match. |
| 17 | mask too complex | A mask could not be deciphered during pattern match. |
| 18 | bad escape info | Unrecognized escape sequence. |
| 19 | bad action info | Unrecognized action type. |
| 20 | bad expressions | Invalid operator or operand in an expression. |
| 21 | bad variable ref | Reference to variable that does not exist. |
| 22 | no callback routine | Internal error occurred during action processing. |
| 23 | no current match entry | Internal error trying to process a message. |
| 24 | IF nested too deep | Conditional constructs are nested more than 32 levels. |
| 25 | bad token info | Token type was not recognized |