public IllegalStateException(message as String = "Illegal state"):
Creates an illegal-state exception.
message
error = IllegalStateException("Resource is closed") print(error.message)