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 IllegalFlow notImplemented()  
    static IllegalFlow notImplemented​(java.lang.Object detailMessage)  
    static IllegalFlow unexpectedException​(java.lang.Throwable exception)  
    static IllegalFlow unexpectedException​(java.lang.Throwable exception, java.lang.Object detailMessage)  
    static IllegalFlow unreachableCode()  
    static IllegalFlow unreachableCode​(java.lang.Object detailMessage)  

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • 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)