InvalidStateException

class InvalidStateException(expected: String?, got: String?, val cause: Throwable? = null) : IllegalStateException

Exception thrown when the state is not of desired type when using state methods that validate it, such as withStateOrThrow

Constructors

Link copied to clipboard
constructor(expected: String?, got: String?, cause: Throwable? = null)

Properties

Link copied to clipboard
open override val cause: Throwable? = null
Link copied to clipboard
open override val message: String