Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExceptionFiltersContext

Hierarchy

  • BaseExceptionFilterContext
    • ExceptionFiltersContext

Index

Constructors

constructor

Properties

Private Readonly config

config: ApplicationConfig

Protected moduleContext

moduleContext: string

Methods

create

  • create(instance: Controller, callback: <T>(data: T) => Observable<any>, module: string, contextId?: ContextId, inquirerId?: string): RpcExceptionsHandler

createConcreteContext

  • createConcreteContext<T, R>(metadata: T, contextId?: ContextId, inquirerId?: string): R
  • Type parameters

    • T: any[]

    • R: any[]

    Parameters

    • metadata: T
    • Optional contextId: ContextId
    • Optional inquirerId: string

    Returns R

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: Function | ExceptionFilter, contextId?: ContextId, inquirerId?: string): ExceptionFilter | null
  • Parameters

    • filter: Function | ExceptionFilter
    • Optional contextId: ContextId
    • Optional inquirerId: string

    Returns ExceptionFilter | null

getGlobalMetadata

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

getInstanceByMetatype

  • getInstanceByMetatype<T>(filter: T): InstanceWrapper | undefined
  • Type parameters

    • T: Record<string, any>

    Parameters

    • filter: T

    Returns InstanceWrapper | undefined

reflectCatchExceptions

  • reflectCatchExceptions(instance: ExceptionFilter): Type<any>[]
  • Parameters

    • instance: ExceptionFilter

    Returns Type<any>[]

reflectClassMetadata

  • reflectClassMetadata<T>(instance: Controller, metadataKey: string): 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