}
catch (RaiseException ex) {
RubyException rubyEx = ex.getException();
String msg = (rubyEx != null && rubyEx.message != null) ?
rubyEx.message.toString() : "Unexpected JRuby error";
throw new ScriptCompilationException(
"Could not compile JRuby script [" + scriptSource + "]: " + msg, ex);
}
catch (JumpException ex) {
throw new ScriptCompilationException(
"Could not compile JRuby script [" + scriptSource + "]", ex);
}
}