org-arl / fjage

Framework for Java and Groovy Agents
https://fjage.readthedocs.io/en/latest/
Other
26 stars 13 forks source link

Improved handling of exceptions in ShellExtension in GroovyScriptEngine #303

Open notthetup opened 8 months ago

notthetup commented 8 months ago

If there is an unhandled Exception in a ShellExtension, that usually ends up showing a Unknown method: <extension method>(...) on the Shell. This is misleading as the method actually exists and is being executed, but had an exception.

Is it possible for the Shell to distinguish between an "unknown method" and a "exception while executing a method" and print more useful errors instead of just "Unknown method"?