115116117118119120121122123124125
return retval; } if (what instanceof String) { return new ESString(what.toString ()); } if (what instanceof Number) { return new ESNumber(new Double(what.toString()).doubleValue()); }
304305306307308309310311312313314
String msg = x.getMessage(); if (msg == null || msg.length() == 0) { msg = x.toString (); } esretval.putProperty("error", new ESString(msg), "error".hashCode()); esretval.putProperty("result", ESNull.theNull, "result".hashCode()); } return esretval;