ContextedIllegalArgumentException
class ContextedIllegalArgumentException(message: String? = null, cause: Throwable? = null, context: ExceptionContext = DefaultExceptionContext()) : IllegalArgumentException, ExceptionContext
An IllegalArgumentException 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 IllegalArgumentException.withContext(vararg context: Pair<String?, Any?>): ContextedIllegalArgumentException
Converts this
into a ContextedIllegalArgumentException 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.