Skip to main content
Version: v0.0.8

Variable: SCRIPT_FATAL_MESSAGES

const SCRIPT_FATAL_MESSAGES: Readonly<Record<ScriptFatalCode, string>>

The frozen message registry for SCRIPT fatals: one fixed sentence per code, and the only source an NcpdpScriptParseError's message can come from.

Example

import { SCRIPT_FATAL_CODES, SCRIPT_FATAL_MESSAGES } from "@cosyte/ncpdp/common";
SCRIPT_FATAL_MESSAGES[SCRIPT_FATAL_CODES.EMPTY_INPUT]; // "SCRIPT input is empty."