Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseExceptionFilterContext

Hierarchy

  • ContextCreator
  • ContextCreator
    • BaseExceptionFilterContext

Index

Constructors

constructor

  • Parameters

    • container: any

    Returns BaseExceptionFilterContext

Properties

Private Readonly container

container: NestContainer

Protected moduleContext

moduleContext: string

Methods

createConcreteContext

  • createConcreteContext(metadata: any, contextId?: ContextId, inquirerId: any): { exceptionMetatypes: any; func: any }[]
  • Parameters

    • metadata: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirerId: any

    Returns { exceptionMetatypes: any; func: any }[]

createContext

  • createContext<T, R>(instance: Controller, callback: (...args: any[]) => void, metadataKey: string, contextId?: ContextId, inquirerId?: string): R
  • Type parameters

    • T: unknown[] = any

    • R: unknown[] = any

    Parameters

    • instance: Controller
    • callback: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    • metadataKey: string
    • Optional contextId: ContextId
    • Optional inquirerId: string

    Returns R

getFilterInstance

  • getFilterInstance(filter: any, contextId?: ContextId, inquirerId: any): any
  • Parameters

    • filter: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirerId: any

    Returns any

Optional getGlobalMetadata

  • getGlobalMetadata<T>(contextId?: ContextId, inquirerId?: string): T

getInstanceByMetatype

  • getInstanceByMetatype(filter: any): any
  • Parameters

    • filter: any

    Returns any

reflectCatchExceptions

  • reflectCatchExceptions(instance: any): any
  • Parameters

    • instance: any

    Returns any

reflectClassMetadata

  • reflectClassMetadata<T>(instance: Controller, metadataKey: string): T
  • Type parameters

    • T

    Parameters

    Returns T

reflectMethodMetadata

  • reflectMethodMetadata<T>(callback: (...args: unknown[]) => unknown, metadataKey: string): T
  • Type parameters

    • T

    Parameters

    • callback: (...args: unknown[]) => unknown
        • (...args: unknown[]): unknown
        • Parameters

          • Rest ...args: unknown[]

          Returns unknown

    • metadataKey: string

    Returns T

Generated using TypeDoc