public class DROperatorException extends DRException
Constructor and Description |
---|
DROperatorException(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.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String instanceName,
Throwable cause)
Add a cause exception from the specified instance.
|
Map<String,Throwable> |
getCauseMap()
Get a
java.util.Map of cause exceptions, keyed by name. |
Map<String,List<Throwable>> |
getCausesMap()
Get a
java.util.Map of cause exceptions, keyed by name. |
List<String> |
getPathList()
Get a
java.util.List of the names where an exception
occurred, in the order in which the exceptions were added to this
composite exception. |
void |
merge(DROperatorException ex)
Combine another composite exception with this one.
|
void |
printStackTrace()
Prints this exception's stack trace, and the stack trace of all the
causing exceptions, to the standard error stream.
|
void |
printStackTrace(PrintStream printStream)
Prints this exception's stack trace, and the stack trace of all the
causing exceptions, to the specified
PrintStream . |
void |
printStackTrace(PrintWriter printWriter)
Prints this exception's stack trace, and the stack trace of all the
causing exceptions, to the specified
PrintWriter . |
String |
toString()
Prints this exception's stack trace and cause map.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
public DROperatorException(GraphPath path, Throwable cause)
path
- the unique path identifying the node in
the composed graphcause
- the error which occurredpublic DROperatorException(String name)
name
- Name of the source of the exceptionpublic void add(String instanceName, Throwable cause)
instanceName
- Name of the instances where the exception occurredcause
- Exception causing this composite exceptionpublic void merge(DROperatorException ex)
ex
- Composite exception to mergepublic Map<String,Throwable> getCauseMap()
java.util.Map
of cause exceptions, keyed by name.
Note that this map contains the first exception for each path.
If the full list of exceptions is desired, use getCausesMap()
.public Map<String,List<Throwable>> getCausesMap()
java.util.Map
of cause exceptions, keyed by name.public List<String> getPathList()
java.util.List
of the names where an exception
occurred, in the order in which the exceptions were added to this
composite exception.List
of the names where an exception occurredadd(String, Throwable)
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream printStream)
PrintStream
.printStackTrace
in class Throwable
public void printStackTrace(PrintWriter printWriter)
PrintWriter
.printStackTrace
in class Throwable
Copyright © 2016 Actian Corporation. All rights reserved.