Skip to main content

Enumeration: P5AsciifyErrorLevel

Defined in: errors/ErrorHandler.ts:17

Error handling levels for the p5.asciify library.

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

Example

// Set to warning level to log errors without stopping execution
p5asciify.setErrorLevel(P5AsciifyErrorLevel.WARNING);

Enumeration Members

Enumeration MemberValueDescriptionDefined in
ERROR2Log validation failures as errors. Execution continues, but errors are prominently displayed in the console.errors/ErrorHandler.ts:34
SILENT0Suppress all error output. Validation failures are handled silently without any console messages.errors/ErrorHandler.ts:22
THROW3Throw exceptions on validation failures. Stops execution immediately when errors occur (default behavior).errors/ErrorHandler.ts:40
WARNING1Log validation failures as warnings. Execution continues normally, but issues are reported to the console.errors/ErrorHandler.ts:28