Class ScriptingException

All Implemented Interfaces:
Serializable

public final class ScriptingException extends DRException
Provides an unchecked wrapper for exceptions thrown by scripts providing such information as line and column number of the error.
See Also:
  • Constructor Details

    • ScriptingException

      public ScriptingException(Throwable cause)
      Constructs an exception with the given cause.
      Parameters:
      cause - Cause of the exception
    • ScriptingException

      public ScriptingException(String message, Throwable cause)
      Constructs an exception with the given message and cause.
      Parameters:
      message - Message of the exception
      cause - Cause of the exception
  • Method Details

    • getNodeName

      public String getNodeName()
      Retrieves the name of the DataflowNode in which the scripting exception occurred.
      Returns:
      Name of the containing DataflowNode
    • setNodeName

      public void setNodeName(String nodeName)
      Sets the name of the DataflowNode in which the scripting exception occurred.
      Parameters:
      nodeName - Name of the containing DataflowNode
    • getEventName

      public String getEventName()
      Retrieves the stage at which the exception occurred, e.g. <prepare>, beforeFirstRecord, onEveryRecord, etc.
      Returns:
      Name of the stage at which the exception occurred
    • setEventName

      public void setEventName(String eventName)
      Sets the stage at which the exception occurred, e.g. <prepare>, beforeFirstRecord, onEveryRecord, etc.
      Parameters:
      eventName - Name of the stage at which the exception occurred
    • getErrorLineNumber

      public int getErrorLineNumber()
      Retrieves the line number where the exception was originally thrown in the script.
      Returns:
      Line number of exception in script
    • setErrorLineNumber

      public void setErrorLineNumber(int lineNumber)
      Sets the line number where the exception was originally thrown in the script.
      Parameters:
      lineNumber - Line number of exception in script
    • getErrorColumnPosition

      public int getErrorColumnPosition()
      Retrieves the column number where the exception was originally thrown in the script.
      Returns:
      Column number of exception in script
    • setErrorColumnPosition

      public void setErrorColumnPosition(int columnNumber)
      Sets the column number where the exception was originally thrown in the script.
      Parameters:
      columnNumber - Column number of exception in script