public class ExecutionDiagnosticImpl extends org.eclipse.emf.common.util.BasicDiagnostic implements ExecutionDiagnostic
Modifier and Type | Field and Description |
---|---|
static ExecutionDiagnosticImpl |
OK_INSTANCE |
children, code, data, message, severity, source
EXCEPTION_THROWN, FATAL_ASSERTION, MODEL_PARAMETER_MISMATCH, SOURCE, TRANSFORMATION_LOAD_FAILED, USER_INTERRUPTED, VALIDATION
Constructor and Description |
---|
ExecutionDiagnosticImpl(int severity,
int code,
java.lang.String message) |
ExecutionDiagnosticImpl(int severity,
int code,
java.lang.String message,
java.lang.Object[] data) |
Modifier and Type | Method and Description |
---|---|
java.util.List<IVMStackTraceElement> |
getStackTrace()
Gets the stack trace that resulted from interrupted execution either by
user termination request or exception thrown
|
void |
printStackTrace(java.io.PrintWriter writer)
Prints the execution stack-trace (if available) of this diagnostic to the
specified print writer.
|
void |
setStackTrace(java.util.List<? extends IVMStackTraceElement> stackElements) |
add, addAll, dataAsList, getChildren, getCode, getData, getException, getMessage, getSeverity, getSource, merge, recomputeSeverity, setCode, setSeverity, setSource, toDiagnostic, toDiagnostic, toIStatus, toIStatus, toString
public static final ExecutionDiagnosticImpl OK_INSTANCE
public ExecutionDiagnosticImpl(int severity, int code, java.lang.String message, java.lang.Object[] data)
public ExecutionDiagnosticImpl(int severity, int code, java.lang.String message)
public java.util.List<IVMStackTraceElement> getStackTrace()
getStackTrace
in interface ExecutionDiagnostic
public void printStackTrace(java.io.PrintWriter writer)
printStackTrace
in interface ExecutionDiagnostic
writer
- PrintWriter
to use for outputpublic void setStackTrace(java.util.List<? extends IVMStackTraceElement> stackElements)