Variable: FATAL_CODES
constFATAL_CODES:object
Stable fatal codes - the reserved names for unrecoverable input conditions. Nothing in this library throws one today; every path, datatype and message level alike, fails safe to a value-free issue instead. They are declared so that a future one is an addition rather than a rename.
Type Declaration
EMPTY_INPUT
readonlyEMPTY_INPUT:"EMPTY_INPUT"="EMPTY_INPUT"
The input carried nothing to transform.
TRANSFORM_UNSUPPORTED_INPUT
readonlyTRANSFORM_UNSUPPORTED_INPUT:"TRANSFORM_UNSUPPORTED_INPUT"="TRANSFORM_UNSUPPORTED_INPUT"
The input was not a shape this transform accepts.
Example
import { FATAL_CODES } from "@cosyte/transform";
void FATAL_CODES.EMPTY_INPUT;