Class IllegalFlow

All Implemented Interfaces:
Serializable

public final class IllegalFlow extends 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:
  • Method Details

    • unreachableCode

      public static IllegalFlow unreachableCode()
    • unreachableCode

      public static IllegalFlow unreachableCode(@Nullable @Nullable Object detailMessage)
    • unexpectedException

      public static IllegalFlow unexpectedException(Throwable exception)
    • unexpectedException

      public static IllegalFlow unexpectedException(Throwable exception, @Nullable @Nullable Object detailMessage)
    • notImplemented

      public static IllegalFlow notImplemented()
    • notImplemented

      public static IllegalFlow notImplemented(@Nullable @Nullable Object detailMessage)