Package org.biojava.nbio.ontology.utils
Class AssertionFailure
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.biojava.nbio.ontology.utils.AssertionFailure
- All Implemented Interfaces:
Serializable
An unchecked exception representing an Assertion failure.
Assertion failures should be raised when code finds itself in a state that should be impossible. It should not be raised in response to any predictable error condition. Assertion failures indicate that something has gone badly wrong, and that the assumptions under which library code has been developed are not holding.
This extends AssertionError
, adding convenient
constructors with messages and causes.
- Since:
- 1.4
- Author:
- Matthew Pocock
- See Also:
-
Constructor Summary
ConstructorDescriptionAssertionFailure
(String message) AssertionFailure
(String message, Throwable cause) AssertionFailure
(Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AssertionFailure
-
AssertionFailure
-
AssertionFailure
-