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
Provides an unchecked wrapper for exceptions thrown by scripts providing such
information as line and column number of the error.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScriptingException(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
Modifier and TypeMethodDescriptionintRetrieves the column number where the exception was originally thrown in the script.intRetrieves the line number where the exception was originally thrown in the script.Retrieves the stage at which the exception occurred, e.g.Retrieves the name of theDataflowNodein which the scripting exception occurred.voidsetErrorColumnPosition(int columnNumber) Sets the column number where the exception was originally thrown in the script.voidsetErrorLineNumber(int lineNumber) Sets the line number where the exception was originally thrown in the script.voidsetEventName(String eventName) Sets the stage at which the exception occurred, e.g.voidsetNodeName(String nodeName) Sets the name of theDataflowNodein 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 Details
-
ScriptingException
Constructs an exception with the given cause.- Parameters:
cause- Cause of the exception
-
ScriptingException
Constructs an exception with the given message and cause.- Parameters:
message- Message of the exceptioncause- Cause of the exception
-
-
Method Details
-
getNodeName
Retrieves the name of theDataflowNodein which the scripting exception occurred.- Returns:
- Name of the containing
DataflowNode
-
setNodeName
Sets the name of theDataflowNodein which the scripting exception occurred.- Parameters:
nodeName- Name of the containingDataflowNode
-
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
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
-