Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ParameterTypeError

Error indicating that an input value cannot be converted to a expected type

Hierarchy

  • TypeError
    • ParameterTypeError

Index

Constructors

constructor

Properties

message

message: string

name

name: string

Optional stack

stack?: string

Private Readonly stringContent

stringContent: string

Value converted to a string

readonly

Private Readonly type

Expected type

readonly

Static stackTraceLimit

stackTraceLimit: number

Methods

toString

  • toString(): string
  • Converts error object to user-readable message

    Returns string

    Formatted error message

Static captureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Static Optional prepareStackTrace

  • prepareStackTrace(err: Error, stackTraces: CallSite[]): any

Generated using TypeDoc