structure
Class FailedAssertion
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Error
|
+--structure.FailedAssertion
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- FailedInvariant, FailedPostcondition, FailedPrecondition
- class FailedAssertion
- extends Error
This error is thrown by the Assert class in the event of any failed
assertion test. Errors are thrown rather than exceptions because
failed assertions 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 |
FailedAssertion(String reason)
Constructs an error indicating failure to meet condition. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
FailedAssertion
public FailedAssertion(String reason)
- Constructs an error indicating failure to meet condition.
- Parameters:
reason
- String describing failed condition.