Variable: TELECOM_FATAL_CODES
constTELECOM_FATAL_CODES:object
Fatal error codes for NCPDP Telecommunication-standard parsing. A fatal is reserved for structure that cannot be treated as a Telecom transmission at all: input too short to hold the fixed Transaction Header, an unframeable body, or a version whose byte layout this reader cannot trust. Everything recoverable is a warning instead (see "./warnings".TELECOM_WARNING_CODES).
Type Declaration
EMPTY_INPUT
readonlyEMPTY_INPUT:"EMPTY_INPUT"="EMPTY_INPUT"
Input is empty or whitespace-only.
INVALID_FRAMING
readonlyINVALID_FRAMING:"NCPDP_TELECOM_INVALID_FRAMING"="NCPDP_TELECOM_INVALID_FRAMING"
The message body carries content but none of the framing control characters needed to tokenize it into segments and fields; a separator is never guessed.
NO_HEADER
readonlyNO_HEADER:"NCPDP_TELECOM_NO_HEADER"="NCPDP_TELECOM_NO_HEADER"
Input is too short to contain the fixed Transaction Header.
UNSUPPORTED_VERSION
readonlyUNSUPPORTED_VERSION:"NCPDP_TELECOM_UNSUPPORTED_VERSION"="NCPDP_TELECOM_UNSUPPORTED_VERSION"
A version stamp is present but is neither the supported D.0 nor a recognized future stamp (e.g. F6); the fixed-header byte layout cannot be trusted, so the message is refused rather than decoded against the wrong offsets.
Example
import { TELECOM_FATAL_CODES } from "@cosyte/ncpdp/telecom";
TELECOM_FATAL_CODES.NO_HEADER; // "NCPDP_TELECOM_NO_HEADER"