Class RuleDescriptorException

  • All Implemented Interfaces:
    java.io.Serializable, IIdentifiable

    public class RuleDescriptorException
    extends AbstractException
    Defines a specific exception for failing rule conditions carrying the index of the failing expression.
    Author:
    Holger Eichelberger
    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        For serialization.
        See Also:
        Constant Field Values
      • index

        private int index
    • Constructor Detail

      • RuleDescriptorException

        public RuleDescriptorException​(java.lang.String message,
                                       int index)
        Creates a new rule condition exception.
        Parameters:
        message - the message
        index - the index of the failing expression
      • RuleDescriptorException

        public RuleDescriptorException​(AbstractException exception,
                                       int index)
        Creates a new rule condition exception.
        Parameters:
        exception - the exception to take message and id from
        index - the index of the failing expression
    • Method Detail

      • getIndex

        public int getIndex()
        Returns the index of the failing expression.
        Returns:
        the index