klyn.IllegalStateException.IllegalStateException
constructor
public IllegalStateException(message as String = "Illegal state"):
Description

Creates an illegal-state exception.

Parameters
ParameterDescription
messageHuman-readable state error.
Example
error = IllegalStateException("Resource is closed")
print(error.message)