TeslaCN commented on issue #1622:
URL:
https://github.com/apache/shardingsphere-elasticjob/issues/1622#issuecomment-713352479
> How to config `THROW` error handler in the new API?
`THROW` is specified by a configuration class without any fields.
```java
public final class ThrowErrorHandlerConfiguration implements
ErrorHandlerConfiguration {
@Override
public String getType() {
return "THROW";
}
}
```
I can send a email before throw an exception.
```java
.addExtraConfigurations(new EmailConfiguration())
.addExtraConfigurations(new ThrowErrorHandlerConfiguration())
.addExtraConfigurations(new LogErrorHandlerConfiguration())
// Will not be invoked.
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]