spring-shell icon indicating copy to clipboard operation
spring-shell copied to clipboard

Handle ResultHandlerService errors

Open jvalkeal opened this issue 2 years ago • 0 comments

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.

jvalkeal avatar May 12 '22 06:05 jvalkeal