Class AnchorImpossibleSituationException
Object
Throwable
Exception
RuntimeException
AnchorRuntimeException
AnchorFriendlyRuntimeException
AnchorImpossibleSituationException
- All Implemented Interfaces:
Serializable
,HasFriendlyErrorMessage
A run-time exception to throw in situations which should never logically occur by design.
This is conveient to use instead of assert false
as assertions are not always checked
by the JVM.
If this is somehow thrown, it's an indication there is a logical error in the code.
- Author:
- Owen Feehan
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AnchorImpossibleSituationException
(String message) Creates with a specific message explaining the exception. -
Method Summary
Methods inherited from class org.anchoranalysis.core.exception.friendly.AnchorFriendlyRuntimeException
friendlyMessage, friendlyMessageHierarchy, friendlyMessageHierarchy
Methods inherited from class org.anchoranalysis.core.exception.AnchorRuntimeException
toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
AnchorImpossibleSituationException
public AnchorImpossibleSituationException()Default constructor. -
AnchorImpossibleSituationException
Creates with a specific message explaining the exception.- Parameters:
message
- the message.
-