public abstract class ExecutionNotifier<E extends RuntimeException> extends ExecutionContext<E>
ExecutionContext
that uses a Notifier
to report execution conditions.Modifier | Constructor and Description |
---|---|
protected |
ExecutionNotifier(String... startLocation)
Creates a new ExecutionNotifier instance, starting at the given location.
|
Modifier and Type | Method and Description |
---|---|
void |
error(String reason,
String resolution)
Reports an error that could produce an incorrect result.
|
Notifier |
getNotifier()
Returns the
Notifier for this context. |
void |
setNotifier(Notifier notifier)
Changes the
Notifier for this context. |
void |
warn(String reason)
Reports a condition that will affect the expected result.
|
doFor, getLocation, resultFor, toString, whenFailure
protected ExecutionNotifier(String... startLocation)
public void warn(String reason)
reason
- A description of the conditionCopyright © 2024 The Cornutum Project. All rights reserved.