Documentation
    Preparing search index...

    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)
    }
    }
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    debug: boolean = true

    Enable debug mode for detailed error reporting

    Methods

    • Renders an exception for the console with appropriate formatting

      Parameters

      • error: unknown

        The error to render

      • kernel: Kernel<any>

        The Ace kernel instance

      Returns Promise<any>

      const handler = new ExceptionHandler()
      await handler.render(new Error('Something went wrong'), kernel)