Class ScriptExceptions

java.lang.Object
se.datadosen.util.ScriptExceptions

public class ScriptExceptions
extends java.lang.Object
Helper class to simplify error reporting when using javax.script.ScriptingEngine
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getCurrentFileName​(javax.script.ScriptEngine scriptEngine)  
    static void popFileName​(javax.script.ScriptEngine scriptEngine)
    Pop current file, reverting to previously pushed file (Call after done processing a file)
    static void pushFileName​(java.io.File file, javax.script.ScriptEngine scriptEngine)
    Keep track of last file processed (Call just before processing a file)
    static void pushFileName​(java.lang.String fileName, javax.script.ScriptEngine scriptEngine)
    Keep track of last file processed (Call just before processing a file)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • pushFileName

      public static void pushFileName​(java.lang.String fileName, javax.script.ScriptEngine scriptEngine)
      Keep track of last file processed (Call just before processing a file)
    • getCurrentFileName

      public java.lang.String getCurrentFileName​(javax.script.ScriptEngine scriptEngine)
    • pushFileName

      public static void pushFileName​(java.io.File file, javax.script.ScriptEngine scriptEngine)
      Keep track of last file processed (Call just before processing a file)
    • popFileName

      public static void popFileName​(javax.script.ScriptEngine scriptEngine)
      Pop current file, reverting to previously pushed file (Call after done processing a file)