Here you can find the source of getScriptCompileMsg(ScriptException ex)
public static String getScriptCompileMsg(ScriptException ex)
//package com.java2s; /*/* w w w . j a v a2 s .c om*/ * ************************************************************************************* * Copyright (C) 2008 EsperTech, Inc. All rights reserved. * * http://esper.codehaus.org * * http://www.espertech.com * * ---------------------------------------------------------------------------------- * * The software in this package is published under the terms of the GPL license * * a copy of which has been included with this distribution in the license.txt file. * * ************************************************************************************* */ import javax.script.*; public class Main { public static String getScriptCompileMsg(ScriptException ex) { if (ex.getLineNumber() != 1 && ex.getColumnNumber() != -1) { return "At line " + ex.getLineNumber() + " column " + ex.getColumnNumber() + ": " + ex.getMessage(); } else { return ex.getMessage(); } } }