コード例 #1
0
 private static String getExceptionMessage(RhinoException ex) {
   String msg;
   if (ex instanceof JavaScriptException) {
     msg = getMessage("msg.uncaughtJSException", ex.details());
   } else if (ex instanceof EcmaError) {
     msg = getMessage("msg.uncaughtEcmaError", ex.details());
   } else if (ex instanceof EvaluatorException) {
     msg = ex.details();
   } else {
     msg = ex.toString();
   }
   return msg;
 }