Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ErrorHandlerBase

Defines a contract for ErrorHandler and GlobalErrorHandler.

Hierarchy

Index

Methods

Methods

forCode

  • Sets specific HTTP status codes to run this handler for.

    Parameters

    • Rest ...code: number[]

      The HTTP status codes to handle.

    Returns ErrorHandler

    This ErrorHandler, for the sake of chaining.

forCodes

  • forCodes(startIncl: number, endExcl: number): ErrorHandler
  • Sets a range of HTTP status codes to run this handler for.

    Parameters

    • startIncl: number

      The beginning of the range, inclusive.

    • endExcl: number

      The end of the range, exclusive.

    Returns ErrorHandler

    This ErrorHandler, for the sake of chaining.

Generated using TypeDoc