public class Diagnostic
extends java.lang.Object
INFORMATION,
WARNING and ERROR.| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR
Indicates an error message.
|
static int |
INFORMATION
Indicates an information message.
|
static int |
WARNING
Indicates a warning message.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Diagnostic(int severity,
java.lang.String message)
Creates a Diagnostic instance.
|
| Modifier and Type | Method and Description |
|---|---|
static Diagnostic |
error(java.lang.String localizedMessage)
Creates and returns a new error diagnostic.
|
java.lang.String |
getDetail()
Returns the message.
|
int |
getSeverity()
Returns the severity.
|
static Diagnostic |
information(java.lang.String localizedMessage)
Creates and returns a new information diagnostic.
|
static Diagnostic |
warning(java.lang.String localizedMessage)
Creates and returns a new warning diagnostic.
|
public static final int INFORMATION
public static final int WARNING
public static final int ERROR
protected Diagnostic(int severity,
java.lang.String message)
severity - the message severity which must be one of the constants INFORMATION,
WARNING or ERROR.message - public static Diagnostic information(java.lang.String localizedMessage)
localizedMessage - the information messagewarning(String),
error(String)public static Diagnostic warning(java.lang.String localizedMessage)
localizedMessage - the warning messageinformation(String),
error(String)public static Diagnostic error(java.lang.String localizedMessage)
localizedMessage - the error messageinformation(String),
warning(String)public int getSeverity()
INFORMATION,
WARNING or ERROR.INFORMATION,
WARNING,
ERRORpublic java.lang.String getDetail()
Copyright © 2014 Integral Solutions Ltd. All Rights Reserved.