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:
Serializable
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:
-
Method Summary
Modifier and TypeMethodDescriptionstatic IllegalFlowstatic IllegalFlownotImplemented(@Nullable Object detailMessage) static IllegalFlowunexpectedException(Throwable exception) static IllegalFlowunexpectedException(Throwable exception, @Nullable Object detailMessage) static IllegalFlowstatic IllegalFlowunreachableCode(@Nullable Object detailMessage) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
unreachableCode
-
unreachableCode
-
unexpectedException
-
unexpectedException
public static IllegalFlow unexpectedException(Throwable exception, @Nullable @Nullable Object detailMessage) -
notImplemented
-
notImplemented
-