Class ImpossibleError

java.lang.Object
java.lang.Throwable
java.lang.Error
eu.bandm.tools.annotations.ImpossibleError
All Implemented Interfaces:
Serializable

public class ImpossibleError extends Error
May be thrown to indicate the programmer's opinion that this point in the control flow cannot be reached.

It is sometimes useful to have statements that throw errors of this class, in order to shut up complaints that arise from the incompleteness of static control-flow analysis.

Since:
1.0
See Also:
  • Constructor Details

    • ImpossibleError

      public ImpossibleError()
      Constructur with no information. User must consult its stack trace.
    • ImpossibleError

      public ImpossibleError(@Opt @Opt String message)
      Constructor with some text information.
      Parameters:
      message - the describing text. If null, then nothing will be printed.
    • ImpossibleError

      public ImpossibleError(@Opt @Opt Throwable cause)
      Constructor with causing Throwable. User can additionally consult its stack trace.
      Parameters:
      cause - the causing throwable.
    • ImpossibleError

      public ImpossibleError(@Opt @Opt String message, @Opt @Opt Throwable cause)
      Constructor with some text information and causing Throwable. User can additionally consult its stack trace.
      Parameters:
      message - the describing text. If null, then nothing will be printed.
      cause - the causing throwable.
      See Also: