75767778798081828384
errorHandler(deadLetterChannel().delay(25)); TryDefinition tryType = from("direct:start").tryBlock(). process(validator). to("mock:valid"); tryType.finallyBlock().to("mock:all"); } }; } }
68697071727374757677
public void configure() { TryDefinition tryType = from("direct:start").tryBlock(). process(validator). to("mock:valid"); tryType.handle(ValidationException.class).to("mock:invalid"); tryType.finallyBlock().to("mock:all"); } }; } }