wrapped script error into ScriptException