|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--org.oreodata.util.AssertionFailedException
Runtime exception to indicate that an assertion has failed. Now allows wrapping of exceptions, useful for tunnelling of a checked exception in an assertion.
Constructor Summary | |
AssertionFailedException()
|
|
AssertionFailedException(java.lang.String message)
|
|
AssertionFailedException(java.lang.String message,
java.lang.Throwable t)
Create a new AssertionFailedException from an existing exception. |
|
AssertionFailedException(java.lang.Throwable t)
Create a new AssertionFailedException wrapping an existing exception. |
Method Summary | |
java.lang.Throwable |
getNested()
the wrapped exception (or null) |
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 AssertionFailedException()
public AssertionFailedException(java.lang.String message)
public AssertionFailedException(java.lang.Throwable t)
The existing exception will be embedded in the new one, and its message will become the default message for the AssertionFailedException.
t
- The exception or error to be wrapped in an AssertionFailedException.public AssertionFailedException(java.lang.String message, java.lang.Throwable t)
The existing exception will be embedded in the new one, but the new exception will have its own message.
message
- The detail message.t
- The exception/error to be wrapped in an AssertionFailedException.Method Detail |
public java.lang.Throwable getNested()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |