... | ... | @@ -65,8 +65,13 @@ It just creates new instances of the LoggingExceptionListener and returns them t |
|
|
We can now use it and pass it to the framework, like:
|
|
|
|
|
|
```Java
|
|
|
Configuration config = new Configuration(new LoggingExceptionListenerFactory());
|
|
|
Execution<ExampleConfiguration> execution = new Execution(config);
|
|
|
public class ExampleConfiguration extends Configuration {
|
|
|
|
|
|
public ExceptionPassingTestConfig() {
|
|
|
super(new LoggingExceptionHandler());
|
|
|
...
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
With these 3 simple steps, you can define your own behavior upon thrown exceptions and use it with TeeTime. |
|
|
\ No newline at end of file |