Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
People may configure code like
@Override protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { @Override public void configure() throws Exception { errorHandler(defaultErrorHandler()) .onException(Exception.class) .redeliveryPolicyRef("redeliveryPolicy") .log(LoggingLevel.ERROR, "Error");
Which is wrong. As the context scoped error handler, should be a void method, so people have to configure the onException in a new method as best practice would be.