Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IllegalStateError

An error that indicates that a method has been called at an illegal or inappropriate time.

Hierarchy

  • Error
    • IllegalStateError

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • The constructor creates IllegalStateError objects.

    Parameters

    • message: string

      The error message

    Returns IllegalStateError

Properties

message

message: string

name

name: string

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Static type

type: "illegal_state_error" = "illegal_state_error"

The illegal_state_error error type

Methods

getType

  • getType(): string
  • Get the error type

    Returns string