spring-shell
spring-shell copied to clipboard
Handle ResultHandlerService errors
If handling fails then errors are not handled and shell basically exits. Maybe do something like:
if (result != NO_INPUT && !(result instanceof ExitRequest)) {
try {
resultHandlerService.handle(result);
} catch (Exception e) {
resultHandlerService.handle(e);
}
}
Unless there's better approach.