Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IllegalArgumentError

An error that indicates that a function has been called with an illegal or inappropriate argument.

Hierarchy

  • Error
    • IllegalArgumentError

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • The constructor creates IllegalArgumentError objects.

    Parameters

    • message: string

      The error message

    Returns IllegalArgumentError

Properties

message

message: string

name

name: string

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Static type

type: "illegal_argument_error" = "illegal_argument_error"

The illegal_argument_error error type

Methods

getType

  • getType(): string
  • Get the error type

    Returns string