Package org.apache.groovy.groovysh
Interface GroovyshOptions.ErrorHandler
- Enclosing class:
- GroovyshOptions
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handles an error thrown by the REPL loop.
-
Method Summary
-
Method Details
-
handle
Handles an error that escaped command execution.UserInterruptExceptionandEndOfFileExceptionare not delivered here;Maintreats those as control flow. A handler that throws is not caught again: the error escapes the REPL loop andMain.start(GroovyshOptions, String[])returns 1.- Parameters:
error- the thrown error or exceptiondefaultTrace- groovysh's own renderer, for a handler that wants to delegate
-