structure
Class FailedInvariant
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Error
|
+--structure.FailedAssertion
|
+--structure.FailedInvariant
- All Implemented Interfaces:
- Serializable
- class FailedInvariant
- extends FailedAssertion
This error is thrown by the Assert class in the event of a failed
invariant test. Errors are thrown rather than exceptions because
failed invariants are assumed to be an indication of such
an egregious program failure that recovery is impossible.
- See Also:
Assert.fail(java.lang.String)
, Serialized Form
Constructor Summary |
FailedInvariant(String reason)
Constructs an error indicating failure to meet an invariant |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
FailedInvariant
public FailedInvariant(String reason)
- Constructs an error indicating failure to meet an invariant
- Parameters:
reason
- String describing failed condition.