Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseExceptionFilter
    • JsonapiExceptionFilter

Index

Constructors

Properties

applicationRef?: HttpServer<any, any>
httpAdapterHost?: HttpAdapterHost<AbstractHttpAdapter<any, any, any>>

Methods

  • catch(exception: unknown, host: ArgumentsHost): void
  • Parameters

    • exception: unknown
    • host: ArgumentsHost

    Returns void

  • handleUnknownError(exception: any, host: ArgumentsHost, applicationRef: HttpServer<any, any> | AbstractHttpAdapter<any, any, any>): void
  • Parameters

    • exception: any
    • host: ArgumentsHost
    • applicationRef: HttpServer<any, any> | AbstractHttpAdapter<any, any, any>

    Returns void

  • isExceptionObject(err: any): err is Error
  • Parameters

    • err: any

    Returns err is Error

  • isHttpError(err: any): err is { message: string; statusCode: number }
  • Checks if the thrown error comes from the "http-errors" library.

    Parameters

    • err: any

      error object

    Returns err is { message: string; statusCode: number }

Generated using TypeDoc