Class ParametersError

Error class to be used when the provided options are invalid.

Hierarchy

  • Error
    • ParametersError

Constructors

  • Parameters

    • message: string
    • Optional errors: null | ErrorObject<string, Record<string, any>, unknown>[]
      Optional

    Returns ParametersError

Properties

code: string = 'ERR_INVALID_PARAMETERS'

Code to identify the error in catch clauses.

errors?: null | ErrorObject<string, Record<string, any>, unknown>[]

Detailed introspection on the encountered errors, useful to know exactly what failed in the options.

message: string
name: string
stack?: string
message: string = 'Invalid parameters. Catch `e.errors` for details.'
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function
      Optional

    Returns void

Generated using TypeDoc