java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.pervasive.datarush.exceptions.DRException
com.pervasive.datarush.graphs.DROperatorException
- All Implemented Interfaces:
Serializable
Wrapper for errors occurring during the execution of a dataflow
graph. Each error is recorded along with the path to the dataflow
process which threw it.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDROperatorException(GraphPath path, Throwable cause) Creates a wrapper for the specified error associated with the given node.DROperatorException(String name) Constructs an execution exception for a dataflow. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a cause exception from the specified instance.Get ajava.util.Mapof cause exceptions, keyed by name.Get ajava.util.Mapof cause exceptions, keyed by name.Get ajava.util.Listof the names where an exception occurred, in the order in which the exceptions were added to this composite exception.voidCombine another composite exception with this one.voidPrints this exception's stack trace, and the stack trace of all the causing exceptions, to the standard error stream.voidprintStackTrace(PrintStream printStream) Prints this exception's stack trace, and the stack trace of all the causing exceptions, to the specifiedPrintStream.voidprintStackTrace(PrintWriter printWriter) Prints this exception's stack trace, and the stack trace of all the causing exceptions, to the specifiedPrintWriter.toString()Prints this exception's stack trace and cause map.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Constructor Details
-
DROperatorException
Creates a wrapper for the specified error associated with the given node.- Parameters:
path- the unique path identifying the node in the composed graphcause- the error which occurred
-
DROperatorException
Constructs an execution exception for a dataflow.- Parameters:
name- Name of the source of the exception
-
-
Method Details
-
add
Add a cause exception from the specified instance.- Parameters:
instanceName- Name of the instances where the exception occurredcause- Exception causing this composite exception
-
merge
Combine another composite exception with this one. All exceptions in the source exception will be added to this one.- Parameters:
ex- Composite exception to merge
-
getCauseMap
Get ajava.util.Mapof cause exceptions, keyed by name. Note that this map contains the first exception for each path. If the full list of exceptions is desired, usegetCausesMap().- Returns:
- Map of all exceptions causing this composite exception
-
getCausesMap
Get ajava.util.Mapof cause exceptions, keyed by name.- Returns:
- Map of all exceptions causing this composite exception
-
getPathList
Get ajava.util.Listof the names where an exception occurred, in the order in which the exceptions were added to this composite exception.- Returns:
Listof the names where an exception occurred- See Also:
-
printStackTrace
public void printStackTrace()Prints this exception's stack trace, and the stack trace of all the causing exceptions, to the standard error stream.- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints this exception's stack trace, and the stack trace of all the causing exceptions, to the specifiedPrintStream.- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints this exception's stack trace, and the stack trace of all the causing exceptions, to the specifiedPrintWriter.- Overrides:
printStackTracein classThrowable
-
toString
Prints this exception's stack trace and cause map.
-