@Documented
@Target(value={METHOD,CONSTRUCTOR})
@Retention(value=RUNTIME)
public @interface ThrowEnsures
When run time checking of contracts is enabled, exceptional
postconditions are checked at method exit, when the method exits by
throwing an exception, and throw a
PostconditionError when they are violated.
Ensures| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String[] |
value
The alternating list of signal--postcondition pairs that must be
met on throw.
|
public abstract java.lang.String[] value
The signal keyword refers to the object thrown
by the method, and has for static type
Throwable.
The old() construct has the same syntax and semantics
as in normal postconditions.
Ensures.value()