Constructor
# new IllegalState(messageopt) → {Error}
A constructor function that creates the illegalState error object. An illegalState error object is used to represent an error when an operation bring a module into an unexpected state.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
String
|
<optional> |
Human-readable description of the error. |
Custom error object, which is an instance of module:base/error#IllegalState which in turn inherit from module:base/error#XDKError.
Error