- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.pervasive.datarush.exceptions.DRException
-
- com.pervasive.datarush.operators.scripting.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScriptingException(String message, Throwable cause)
Constructs an exception with the given message and cause.ScriptingException(Throwable cause)
Constructs an exception with the given cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorColumnPosition()
Retrieves the column number where the exception was originally thrown in the script.int
getErrorLineNumber()
Retrieves the line number where the exception was originally thrown in the script.String
getEventName()
Retrieves the stage at which the exception occurred, e.g.String
getNodeName()
Retrieves the name of theDataflowNode
in which the scripting exception occurred.void
setErrorColumnPosition(int columnNumber)
Sets the column number where the exception was originally thrown in the script.void
setErrorLineNumber(int lineNumber)
Sets the line number where the exception was originally thrown in the script.void
setEventName(String eventName)
Sets the stage at which the exception occurred, e.g.void
setNodeName(String nodeName)
Sets the name of theDataflowNode
in which the scripting exception occurred.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ScriptingException
public ScriptingException(Throwable cause)
Constructs an exception with the given cause.- Parameters:
cause
- Cause of the exception
-
-
Method Detail
-
getNodeName
public String getNodeName()
Retrieves the name of theDataflowNode
in which the scripting exception occurred.- Returns:
- Name of the containing
DataflowNode
-
setNodeName
public void setNodeName(String nodeName)
Sets the name of theDataflowNode
in which the scripting exception occurred.- Parameters:
nodeName
- Name of the containingDataflowNode
-
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
-
-