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
    • 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 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
      • 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 the error.

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

© Copyright IBM Corp. 1987, 2015