ilog.rules.teamserver.model
Class IlrElementError
- java.lang.Object
-
- ilog.rules.teamserver.model.IlrElementError
-
- All Implemented Interfaces:
- java.io.Serializable
public class IlrElementError extends java.lang.Object implements java.io.Serializable
A Decision Center error created when generating a ruleset archive, checking a ruleset archive, committing an object, and so on.- See Also:
- Serialized Form
-
-
Field Summary
Fields 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 Summary
Constructors Constructor and Description IlrElementError(java.lang.String messageKey)
-
Method Summary
Methods Modifier and Type Method and Description static java.lang.String
errorAsString(IlrElementError error, IlrSession session)
Returns a readable messages of theerror
.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.
-
-
-
Field Detail
-
SEVERITY_INFO
public static final int SEVERITY_INFO
- See Also:
- Constant Field Values
-
SEVERITY_WARNING
public static final int SEVERITY_WARNING
- See Also:
- Constant Field Values
-
SEVERITY_ERROR
public static final int SEVERITY_ERROR
- See Also:
- Constant Field Values
-
SEVERITY_SEMANTIC
public static final int SEVERITY_SEMANTIC
- See Also:
- Constant Field Values
-
SEVERITY_NEVER
public static final int SEVERITY_NEVER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IlrElementError
public IlrElementError(java.lang.String messageKey)
- Parameters:
messageKey
- The key representing the type of the error.
-
-
Method Detail
-
getMessageKey
public java.lang.String getMessageKey()
Gets the key representing the type of the error.- Returns:
- A string.
-
getSeverity
public int getSeverity()
Gets the severity of the error.- Returns:
- An integer among:
-
getCause
public java.lang.Exception getCause()
Gets the exception that was the cause of the error.- Returns:
- An exception. May be null if no exception has caused the error.
-
getArgs
public java.lang.Object[] getArgs()
Gets the arguments of the message that can be constructed using the error key.- Returns:
- An array of objects. May be null.
- See Also:
getMessageKey()
-
errorAsString
public static java.lang.String errorAsString(IlrElementError error, IlrSession session)
Returns a readable messages of theerror
.- Parameters:
error
- The error to get the message from.session
- The session.- Returns:
- A readable message for the error.
-
-