Skip to content

textmode.js / errors / TextmodeErrorLevel

Enumeration: TextmodeErrorLevel

Controls how validation failures are reported.

NOTE

This setting currently covers validation paths that use the shared error handler. Other runtime failures may still throw.

Example

js
// 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.