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.AssertionErrorSome 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
All Methods Static Methods Concrete Methods 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)
-
-
-
Method Detail
-
unreachableCode
public static IllegalFlow unreachableCode()
-
unreachableCode
public static IllegalFlow unreachableCode(@Nullable java.lang.Object detailMessage)
-
unexpectedException
public static IllegalFlow unexpectedException(java.lang.Throwable exception)
-
unexpectedException
public static IllegalFlow unexpectedException(java.lang.Throwable exception, @Nullable java.lang.Object detailMessage)
-
notImplemented
public static IllegalFlow notImplemented()
-
notImplemented
public static IllegalFlow notImplemented(@Nullable java.lang.Object detailMessage)
-
-