The operation was not allowed by the current state of the object.

This is a generic error used for a variety of different erroneous actions. The message should be descriptive.

Inheritance

Properties

message String
read-only

stackTrace StackTrace
read-only, inherited

Constructors

StateError(String message)

Methods

toString() → String

Returns a string representation of this object.