Skip to content

textmode.js / TextmodeErrorLevel

Enumeration: TextmodeErrorLevel

Error handling levels to control how errors are reported and handled.

Determines how validation failures and errors are processed throughout the library. Each level provides different behavior for error reporting and execution flow control.

Example

ts
// Set to `WARNING` level to log errors without stopping execution
textmode.setErrorLevel(TextmodeErrorLevel.WARNING);

Enumeration Members

Enumeration MemberValueDescription
ERROR2Log validation failures as errors.
SILENT0Suppress all error output. Validation failures are handled silently without any console messages.
THROW3Throw exceptions on validation failures (default behavior).
WARNING1Log validation failures as warnings.