public class ThrowableKt
| Modifier and Type | Method and Description |
|---|---|
static Assert<java.lang.Throwable> |
cause(Assert<? extends java.lang.Throwable> $receiver)
Returns an assert on the throwable's cause.
|
static void |
hasCause(Assert<? extends java.lang.Throwable> $receiver,
java.lang.Throwable cause)
Asserts the throwable is similar to the expected cause, checking the type and message.
|
static void |
hasMessage(Assert<? extends java.lang.Throwable> $receiver,
java.lang.String message)
Asserts the throwable has the expected message.
|
static void |
hasNoCause(Assert<? extends java.lang.Throwable> $receiver)
Asserts the throwable has no cause.
|
static void |
hasRootCause(Assert<? extends java.lang.Throwable> $receiver,
java.lang.Throwable cause)
Asserts the throwable is similar to the expected root cause, checking the type and message.
|
static Assert<java.lang.String> |
message(Assert<? extends java.lang.Throwable> $receiver)
Returns an assert on the throwable's message.
|
static Assert<java.lang.Throwable> |
rootCause(Assert<? extends java.lang.Throwable> $receiver)
Returns an assert on the throwable's root cause.
|
public static Assert<java.lang.String> message(Assert<? extends java.lang.Throwable> $receiver)
Returns an assert on the throwable's message.
public static Assert<java.lang.Throwable> cause(Assert<? extends java.lang.Throwable> $receiver)
Returns an assert on the throwable's cause.
public static Assert<java.lang.Throwable> rootCause(Assert<? extends java.lang.Throwable> $receiver)
Returns an assert on the throwable's root cause.
public static void hasMessage(Assert<? extends java.lang.Throwable> $receiver, java.lang.String message)
Asserts the throwable has the expected message.
public static void hasCause(Assert<? extends java.lang.Throwable> $receiver, java.lang.Throwable cause)
Asserts the throwable is similar to the expected cause, checking the type and message.
ThrowableKt.hasNoCausepublic static void hasNoCause(Assert<? extends java.lang.Throwable> $receiver)
Asserts the throwable has no cause.
ThrowableKt.hasCausepublic static void hasRootCause(Assert<? extends java.lang.Throwable> $receiver, java.lang.Throwable cause)
Asserts the throwable is similar to the expected root cause, checking the type and message.