The following table describes error messages that ASN1C may report during the course of code generation, not during runtime. These include syntax errors, import warnings, type resolution failures, and others.
There are several classes of status messages in this list: errors
(ASN-E
messages), warnings (ASN-W
messages), and informational
notices (ASN-I
messages).
Error Code | Error Description |
---|---|
ASN-E-NOTYPE | No type was defined for the referenced element in a SEQUENCE or SET. |
ASN-E-UNDEFTYPE | The type referenced was not defined within the context of this module. |
ASN-E-NOTAG | The object must be tagged in this context. This usually occurs when context-specific tags are required to disambiguate elements in a SEQUENCE or SET. |
ASN-W-DUPLICATE | The referenced type or value was previously defined. |
ASN-W-DUPLTAG | The referenced tag was previously defined in a CHOICE or SET; this happens when an contextual tag is provided more than once. |
ASN-E-UNRECTYP | The type described is not recognized by the compiler. |
ASN-E-MULTDEF | A choice tag has multiple definitions. |
ASN-E-UNDEFVAL | The referenced value is not defined or cannot be found. |
ASN-E-INVTYPNAM | Invalid type name. This is a parsing failure; all type names must begin with an uppercase letter. |
ASN-E-UNDEFTAG | The referenced type must be tagged in this context. |
ASN-E-UNKNOWN | Undocumented error occurred in routine. A status value is provided with this error message to help locate the cause of the failure. |
ASN-I-NOCASE | A case statement for the named object was not generated. |
ASN-E-IMPFILOPN | The compiler was unable to open the named import file. |
ASN-E-IMPFILPAR | The compiler was unable to parse the named imported module. |
ASN-E-IMPNOTFOU | The named type was not found in the import module as specified in the IMPORT statement. |
ASN-E-INVCNSTRNT | Invalid constraint specification. |
ASN-W-INVOBJNAM | Invalid object name. The object name must begin with a lowercase letter. |
ASN-E-SETTOOBIG | Set contains more than 32 elements. |
ASN-E-DUPLCASE | This tag was used in a previous switch case statement. |
ASN-E-AMBIGUOUS | This indicates a general ambiguity in the specification such as multiple embedded extensible elements. |
ASN-E-VALTYPMIS | This indicates the value specified does not match the type it is associated with. |
ASN-E-RANGERR | This indicates the value is not within defined range for its associated type. |
ASN-E-VALPARSE | This indicates a general failure to parse a value definition. It would be raised, for example, if a floating point number was used as part of a SIZE constraint. |
ASN-E-INVRANGE | This indicates an invalid range specification, for example when the lower bound is greater than the upper bound. |
ASN-E-IMPORTMOD | This indicates that the specified import module object was not found. |
ASN-E-NOTSUPP | This indicates that the requested functionality is not supported by the compiler. Most often the error is raised when generating test code for complex value definitions. |
ASN-E-IDNOTFOU | This indicates the compiler was unable to look up the specified identifier. |
ASN-E-NOFIELD | This indicates that the specified field could not be found in the named class. |
ASN-E-DUPLNAME | This indicates the specified name is already defined. |
ASN-W-UNNAMED | This warning is raised when specifications use unnamed fields. These fields not allowed in X.680, but ASN1C supports them for purposes of backwards compatibility with X.208. |
ASN-E-UNDEFOBJ | This indicates that the named object is not defined within context of the requested module. |
ASN-E-ABSCLSFLD | This indicates that the specified field is absent in an information object definition. |
ASN-E-UNDEFCLAS | This indicates that the specified class is not defined within context of the module that uses it. |
ASN-E-INVFIELD | This indicates the specified class field is not valid; it must be defined. |
ASN-E-UNDEFOSET | This indicates that ASN1C was unable to find the specified object set in the context of the module in which it's used. |
ASN-E-INVVALELM | An invalid value was supplied for an element in a type. |
ASN-E-MISVALELM | This indicates that a non-optional element is missing a value when it should have one. |
ASN-E-INVLIDENT | This indicates that an invalid identifier was specified in an enumeration. |
ASN-E-FILNOTFOU | This indicates that the requested file was not found. |
ASN-E-INVSIZE | This indicates that an invalid size specification for a type was provided; check size constraints for base types. |
ASN-E-UNRESOBJ | This indicates that the specified information object could not be resolved within the context of the named module. |
ASN-E-TOOMANY | This indicates that too many sub-elements for the specified type were provided. |
ASN-E-LOOPDETECTED | This indicates a loop was detected in the course of code generation; typically this is raised during test code generation. |
ASN-E-INVXMLATTR | This indicates that the specified attribute type must be a simple type. |
ASN-E-INTERNAL | This indicates that internal structures used for generating code are inconsistent. |
ASN-E-NOPDU | This indicates that a PDU type was not found for generating a reader or writer program. |
ASN-E-CIRCULAR | This indicates that a circular reference was detected. |