public final class UnexpectedResultException extends SlowPathException
Constructor and Description |
---|
UnexpectedResultException(Object result)
Creates the exception with the alternative result that cannot be represented as a value of
the return type.
|
Modifier and Type | Method and Description |
---|---|
Object |
getResult() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnexpectedResultException(Object result)
result
- the alternative resultpublic Object getResult()