The base exception handler that is used by default to handle Ace exceptions.
You can extend this class to customize the exception rendering behavior.
export class MyExceptionHandler extends ExceptionHandler { async render(error: unknown, kernel: Kernel<any>) { // Custom error handling await super.render(error, kernel) }} Copy
export class MyExceptionHandler extends ExceptionHandler { async render(error: unknown, kernel: Kernel<any>) { // Custom error handling await super.render(error, kernel) }}
Enable debug mode for detailed error reporting
Renders an exception for the console with appropriate formatting
The error to render
The Ace kernel instance
const handler = new ExceptionHandler()await handler.render(new Error('Something went wrong'), kernel) Copy
const handler = new ExceptionHandler()await handler.render(new Error('Something went wrong'), kernel)
The base exception handler that is used by default to handle Ace exceptions.
You can extend this class to customize the exception rendering behavior.
Example