public interface Diagnostic
Modifier and Type | Field and Description |
---|---|
static int |
CANCEL
The bit mask value
0x8 for a severity indicating that the diagnosis was canceled. |
static Diagnostic |
CANCEL_INSTANCE
A diagnostic indicating that the diagnosis was canceled.
|
static int |
ERROR
The bit mask value
0x4 for a severity indicating there is an error message. |
static int |
INFO
The bit mask value
0x1 for a severity indicating there is an informational message. |
static int |
OK
The bit mask value
0x0 for a severity indicating everything is okay. |
static Diagnostic |
OK_INSTANCE
A diagnostic indicating that everything is okay.
|
static int |
WARNING
The bit mask value
0x2 for a severity indicating there is warning message. |
Modifier and Type | Method and Description |
---|---|
java.util.List<Diagnostic> |
getChildren()
Returns the list of child
diagnostics . |
int |
getCode()
Returns
source-specific identity code. |
java.util.List<?> |
getData()
Returns the arbitrary associated list of data.
|
java.lang.Throwable |
getException()
Returns the relevant low-level exception, or
null if none. |
java.lang.String |
getMessage()
Returns a message describing the situation.
|
int |
getSeverity()
Returns an indicator of the severity of the problem.
|
java.lang.String |
getSource()
Returns the unique identifier of the source.
|
static final int OK
0x0
for a severity
indicating everything is okay.static final int INFO
0x1
for a severity
indicating there is an informational message.static final int WARNING
0x2
for a severity
indicating there is warning message.static final int ERROR
0x4
for a severity
indicating there is an error message.static final int CANCEL
0x8
for a severity
indicating that the diagnosis was canceled.static final Diagnostic OK_INSTANCE
static final Diagnostic CANCEL_INSTANCE
int getSeverity()
java.lang.String getMessage()
java.lang.String getSource()
int getCode()
source-specific
identity code.java.lang.Throwable getException()
null
if none.java.util.List<?> getData()
java.util.List<Diagnostic> getChildren()
diagnostics
.