ContextedIllegalStateException
class ContextedIllegalStateException(message: String? = null, cause: Throwable? = null, context: ExceptionContext = DefaultExceptionContext()) : IllegalStateException, ExceptionContext
An IllegalStateException with attached context.
Note: Only use this exception if it is guaranteed that the exception will not be propagated to the user.
See also
Constructors
Link copied to clipboard
constructor(message: String? = null, cause: Throwable? = null, context: ExceptionContext = DefaultExceptionContext())
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Recursively collects the causes of this exception, with the direct cause of this
exception appearing first.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Converts this into a ThrowableSummary
Link copied to clipboard
fun IllegalStateException.withContext(vararg context: Pair<String?, Any?>): ContextedIllegalStateException
Converts this
into a ContextedIllegalStateException with context attached.
Converts this
into a ContextedException with context attached.
inline fun RuntimeException.withContext(vararg context: Pair<String?, Any?>): ContextedRuntimeException
Converts this exception into a ContextedRuntimeException with context attached.