public class IlrElementError
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
SEVERITY_ERROR |
static int |
SEVERITY_INFO |
static int |
SEVERITY_NEVER |
static int |
SEVERITY_SEMANTIC |
static int |
SEVERITY_WARNING |
| Constructor and Description |
|---|
IlrElementError(java.lang.String messageKey) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
errorAsString(IlrElementError error,
IlrSession session)
Returns a readable messages of the
error. |
java.lang.Object[] |
getArgs()
Gets the arguments of the message that can be constructed using the error key.
|
java.lang.Exception |
getCause()
Gets the exception that was the cause of the error.
|
java.lang.String |
getMessageKey()
Gets the key representing the type of the error.
|
int |
getSeverity()
Gets the severity of the error.
|
public static final int SEVERITY_INFO
public static final int SEVERITY_WARNING
public static final int SEVERITY_ERROR
public static final int SEVERITY_SEMANTIC
public static final int SEVERITY_NEVER
public IlrElementError(java.lang.String messageKey)
messageKey - The key representing the type of the error.public java.lang.String getMessageKey()
public int getSeverity()
public java.lang.Exception getCause()
public java.lang.Object[] getArgs()
getMessageKey()public static java.lang.String errorAsString(IlrElementError error, IlrSession session)
error.
error - The error to get the message from.session - The session.© Copyright IBM Corp. 1987, 2017