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

ERROR

ts
ERROR: 2;

Log validation failures as errors.


SILENT

ts
SILENT: 0;

Suppress all error output. Validation failures are handled silently without any console messages.


THROW

ts
THROW: 3;

Throw exceptions on validation failures (default behavior).


WARNING

ts
WARNING: 1;

Log validation failures as warnings.