public final class UnreachableCodeException extends RuntimeException
The type of exceptions thrown upon reaching code that was expected to be unreachable.
As correctly written programs should never raise exceptions of this type, their use in code is intended to document the fact that a statement is expected to be unreachable (but that the compiler cannot prove is actually unreachable).
| Constructor and Description |
|---|
UnreachableCodeException()
Construct a new exception without a specific cause.
|
UnreachableCodeException(Throwable x)
Construct a new exception with the given cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnreachableCodeException()
public UnreachableCodeException(Throwable x)
x - The causeCopyright © 2015 <code@io7m.com> http://io7m.com