Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ParameterError

Hierarchy

  • TypeError
    • ParameterError

Index

Constructors

  • new ParameterError(field: string, target?: null | string, message?: string): ParameterError

Properties

field: string
message: string
name: "ParameterError" = ParameterError.NAME
stack?: string
target?: string
NAME: "ParameterError" = "ParameterError"
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • assert(target: string, params: any, ...fields: string[]): void
  • assert(params: any, ...fields: string[]): void
  • assertEmpty(value: unknown, name: string, target?: string): asserts value
  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc