@FunctionalInterface
public interface GroovyshOptions.ErrorHandler
Handles an error thrown by the REPL loop.
Handles an error that escaped command execution.
UserInterruptException and EndOfFileException are
not delivered here; Main treats those as control flow.
A handler that throws is not caught again: the error escapes the REPL
loop and Main.start returns 1.
error - the thrown error or exceptiondefaultTrace - groovysh's own renderer, for a handler that wants to delegate