Package eu.bandm.tools.annotations
Class ImpossibleError
java.lang.Object
java.lang.Throwable
java.lang.Error
eu.bandm.tools.annotations.ImpossibleError
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionConstructur with no information.ImpossibleError
(@Opt String message) Constructor with some text information.ImpossibleError
(@Opt String message, @Opt Throwable cause) Constructor with some text information and causing Throwable.ImpossibleError
(@Opt Throwable cause) Constructor with causing Throwable. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ImpossibleError
public ImpossibleError()Constructur with no information. User must consult its stack trace. -
ImpossibleError
Constructor with some text information.- Parameters:
message
- the describing text. If null, then nothing will be printed.
-
ImpossibleError
Constructor with causing Throwable. User can additionally consult its stack trace.- Parameters:
cause
- the causing throwable.
-
ImpossibleError
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:
-