Decision Center API

ilog.rules.teamserver.model
Class IlrElementError

java.lang.Object
  extended by ilog.rules.teamserver.model.IlrElementError
All Implemented Interfaces:
Serializable

public class IlrElementError
extends Object
implements 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
static int SEVERITY_ERROR
           
static int SEVERITY_INFO
           
static int SEVERITY_NEVER
           
static int SEVERITY_SEMANTIC
           
static int SEVERITY_WARNING
           
 
Constructor Summary
IlrElementError(String messageKey)
           
 
Method Summary
static String errorAsString(IlrElementError error, IlrSession session)
          Returns a readable messages of the error.
 Object[] getArgs()
          Gets the arguments of the message that can be constructed using the error key.
 Exception getCause()
          Gets the exception that was the cause of the error.
 String getMessageKey()
          Gets the key representing the type of the error.
 int getSeverity()
          Gets the severity of the error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(String messageKey)
Parameters:
messageKey - The key representing the type of the error.
Method Detail

getMessageKey

public 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 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 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 String errorAsString(IlrElementError error,
                                   IlrSession session)
Returns a readable messages of the error.

Parameters:
error - The error to get the message from.
session - The session.
Returns:
A readable message for the error.

Decision Center API

© Copyright IBM Corp. 1987, 2013