Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InvalidArg

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new InvalidArg(message: string, argName?: undefined | string, actual?: unknown, expected?: unknown): InvalidArg

Properties

Optional Readonly actual

actual: unknown

Optional Readonly argName

argName: undefined | string

Optional Readonly expected

expected: unknown

message

message: string

name

name: string

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Methods

Static expected

  • expected(argName: string, actual: unknown, expected: unknown, additionalDetails?: string): Error

Generated using TypeDoc