Interface JessopExceptionConverter

All Known Implementing Classes:
BeanshellExceptionConverter, GraalJsExceptionConverter, JRubyExceptionConverter, LuajExceptionConverter

public interface JessopExceptionConverter
The only reason this thing exists is because the 'bsh' and 'luaj' script engines don't throw ScriptExceptions properly
Author:
knoxg
  • Method Details

    • toScriptException

      Convert runtime exceptions generated by this language's ScriptEngine into ScriptExceptions.

      (Most languages do this properly already, except for lua).

      This is called at runtime, not target script generation time, and should be associated with the target source engine (e.g. rhino), not the target language (e.g. javascript).