Package org.eclipse.emf.common.util
Interface Diagnostic
- All Known Implementing Classes:
BasicDiagnostic
public interface Diagnostic
Information about the outcome of some activity.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe bit mask value0x8for aseverityindicating that the diagnosis was canceled.static final DiagnosticA diagnostic indicating that the diagnosis was canceled.static final intThe bit mask value0x4for aseverityindicating there is an error message.static final intThe bit mask value0x1for aseverityindicating there is an informational message.static final intThe bit mask value0x0for aseverityindicating everything is okay.static final DiagnosticA diagnostic indicating that everything is okay.static final intThe bit mask value0x2for aseverityindicating there is warning message. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of childdiagnostics.intgetCode()Returnssource-specificidentity code.List<?> getData()Returns the arbitrary associated list of data.Returns the relevant low-level exception, ornullif none.Returns a message describing the situation.intReturns an indicator of the severity of the problem.Returns the unique identifier of the source.
-
Field Details
-
OK
static final int OKThe bit mask value0x0for aseverityindicating everything is okay.- See Also:
-
INFO
static final int INFOThe bit mask value0x1for aseverityindicating there is an informational message.- See Also:
-
WARNING
static final int WARNINGThe bit mask value0x2for aseverityindicating there is warning message.- See Also:
-
ERROR
static final int ERRORThe bit mask value0x4for aseverityindicating there is an error message.- See Also:
-
CANCEL
static final int CANCELThe bit mask value0x8for aseverityindicating that the diagnosis was canceled.- See Also:
-
OK_INSTANCE
A diagnostic indicating that everything is okay. -
CANCEL_INSTANCE
A diagnostic indicating that the diagnosis was canceled.
-
-
Method Details
-
getSeverity
int getSeverity()Returns an indicator of the severity of the problem. -
getMessage
String getMessage()Returns a message describing the situation. -
getSource
String getSource()Returns the unique identifier of the source. -
getCode
int getCode()Returnssource-specificidentity code. -
getException
Throwable getException()Returns the relevant low-level exception, ornullif none. -
getData
List<?> getData()Returns the arbitrary associated list of data. The first element is typically the object that is the primary source of the problem; the second element is typically some object describing the problematic feature or aspect of the primary source, and the remaining elements are additional objects associated with or describing the problem. -
getChildren
List<Diagnostic> getChildren()Returns the list of childdiagnostics.
-