public class UnexpectedException extends RuntimeException
Constructor and Description |
---|
UnexpectedException(String message,
Throwable cause)
Creates a new
UnexpectedException . |
UnexpectedException(Throwable cause)
Creates a new
UnexpectedException . |
Modifier and Type | Method and Description |
---|---|
static UnexpectedException |
unexpected(Throwable cause)
Returns a
UnexpectedException . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@Nonnull public UnexpectedException(@Nonnull Throwable cause)
UnexpectedException
.cause
- the unexpected exception.public UnexpectedException(@Nonnull String message, @Nonnull Throwable cause)
UnexpectedException
.message
- the detail message.cause
- the unexpected exception.@Nonnull public static UnexpectedException unexpected(@Nonnull Throwable cause)
UnexpectedException
.cause
- the unexpected exception.Copyright © 2014–2019 AssertJ. All rights reserved.