Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExceptionsHandler

Hierarchy

  • BaseExceptionFilter
  • BaseExceptionFilter
    • ExceptionsHandler

Implements

  • ExceptionFilter<any>
  • ExceptionFilter<any>

Index

Constructors

constructor

  • Returns ExceptionsHandler

Properties

Protected Optional Readonly applicationRef

applicationRef: HttpServer

Private filters

filters: ExceptionFilterMetadata[] = []

Protected Optional Readonly httpAdapterHost

httpAdapterHost: HttpAdapterHost

Methods

catch

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

    • exception: any
    • host: ArgumentsHost

    Returns void

handleUnknownError

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

    • exception: any
    • host: ArgumentsHost
    • applicationRef: AbstractHttpAdapter | HttpServer

    Returns void

invokeCustomFilters

  • invokeCustomFilters(exception: any, ctx: any): boolean
  • Parameters

    • exception: any
    • ctx: any

    Returns boolean

isExceptionObject

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

    • err: any

    Returns err is Error

next

  • next(exception: any, ctx: any): void
  • Parameters

    • exception: any
    • ctx: any

    Returns void

setCustomFilters

  • setCustomFilters(filters: any): void
  • Parameters

    • filters: any

    Returns void

Generated using TypeDoc