Package ch.raffael.meldioc.util
Class IllegalFlow
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
ch.raffael.meldioc.util.IllegalFlow
- All Implemented Interfaces:
java.io.Serializable
public final class IllegalFlow
extends java.lang.AssertionError
Some standard exceptions for illegal program control flow. Sometimes,
you'll get a compiler error if you don't handle certain cases that cannot
happen (switch statements are very prone to this). This lets you put some
statements there that make the compiler happy.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description static IllegalFlownotImplemented()static IllegalFlownotImplemented(java.lang.Object detailMessage)static IllegalFlowunexpectedException(java.lang.Throwable exception)static IllegalFlowunexpectedException(java.lang.Throwable exception, java.lang.Object detailMessage)static IllegalFlowunreachableCode()static IllegalFlowunreachableCode(java.lang.Object detailMessage)Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Method Details
-
unreachableCode
-
unreachableCode
-
unexpectedException
-
unexpectedException
public static IllegalFlow unexpectedException(java.lang.Throwable exception, @Nullable java.lang.Object detailMessage) -
notImplemented
-
notImplemented
-