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