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 Member | Value | Description | Defined in |
|---|---|---|---|
ERROR | 2 | Log validation failures as errors. Execution continues, but errors are prominently displayed in the console. | errors/ErrorHandler.ts:34 |
SILENT | 0 | Suppress all error output. Validation failures are handled silently without any console messages. | errors/ErrorHandler.ts:22 |
THROW | 3 | Throw exceptions on validation failures. Stops execution immediately when errors occur (default behavior). | errors/ErrorHandler.ts:40 |
WARNING | 1 | Log validation failures as warnings. Execution continues normally, but issues are reported to the console. | errors/ErrorHandler.ts:28 |