|
Jcontract API | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jcontract.RuntimeHandler | +--jcontract.ExceptionRuntimeHandler
Simplest implementation of RuntimeHandler.
On contract violation in throws the ContractException that describes
the contract being violated.
Constructor Summary | |
ExceptionRuntimeHandler()
|
Method Summary | |
void |
contractViolation(java.lang.RuntimeException ex)
Throws the ContractException that describes the contract being violated |
Methods inherited from class jcontract.RuntimeHandler |
documentedExceptionThrown, getRuntimeStatistics, instrumentedClassLoaded, shutdownAction, startAction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExceptionRuntimeHandler()
Method Detail |
public void contractViolation(java.lang.RuntimeException ex)
contractViolation
in class RuntimeHandler
jcontract.RuntimeHandler
exception
- the exception that describes the contract violated
|
Jcontract API | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |