|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.jscience.util.AssertionFailure
public class AssertionFailure
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.
| Constructor Summary | |
|---|---|
AssertionFailure(java.lang.String message)
Creates a new AssertionFailure object. |
|
AssertionFailure(java.lang.String message,
java.lang.Throwable cause)
Creates a new AssertionFailure object. |
|
AssertionFailure(java.lang.Throwable cause)
Creates a new AssertionFailure object. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AssertionFailure(java.lang.String message)
message - DOCUMENT ME!public AssertionFailure(java.lang.Throwable cause)
cause - DOCUMENT ME!
public AssertionFailure(java.lang.String message,
java.lang.Throwable cause)
message - DOCUMENT ME!cause - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||