Class RuleDescriptorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.ssehub.easy.basics.messages.AbstractException
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.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 Summary
Fields Modifier and Type Field Description static intID_RULE_MISMATCHprivate intindexprivate static longserialVersionUIDFor serialization.-
Fields inherited from class net.ssehub.easy.basics.messages.AbstractException
ID_AMBIGUOUS, ID_CANNOT_RESOLVE, ID_INTERNAL, ID_SEMANTIC, ID_WARNING
-
-
Constructor Summary
Constructors Constructor Description RuleDescriptorException(java.lang.String message, int index)Creates a new rule condition exception.RuleDescriptorException(AbstractException exception, int index)Creates a new rule condition exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex()Returns the index of the failing expression.-
Methods inherited from class net.ssehub.easy.basics.messages.AbstractException
getId
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.ssehub.easy.basics.messages.IIdentifiable
getMessage
-
-
-
-
Field Detail
-
ID_RULE_MISMATCH
public static final int ID_RULE_MISMATCH
- See Also:
- Constant Field Values
-
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 messageindex- 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 fromindex- the index of the failing expression
-
-