Skip to main content
Version: v0.0.3

Function: telecomWarning()

telecomWarning(code, message, position): NcpdpTelecomWarning

Construct a frozen NcpdpTelecomWarning.

Parameters

code

TelecomWarningCode

The stable warning code.

message

string

PHI-free human-readable description.

position

TelecomPosition

Byte-offset location of the condition.

Returns

NcpdpTelecomWarning

A frozen warning.

Example

telecomWarning(
TELECOM_WARNING_CODES.UNKNOWN_SEGMENT,
"Segment code 99 is not modeled; preserved verbatim.",
telecomPosition(56, "AM"),
);