com.ibm.websphere.brb
Class ConstraintViolationException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ibm.websphere.exception.DistributedException
|
+--com.ibm.websphere.brb.BusinessRuleBeansException
|
+--com.ibm.websphere.brb.ConstraintViolationException
- All Implemented Interfaces:
- com.ibm.websphere.exception.DistributedExceptionEnabled, java.io.Serializable
- public class ConstraintViolationException
- extends BusinessRuleBeansException
An exception that can be thrown when one or more constraint type rules in a trigger
point fail. The information about the individual rule failures is contained in the
ConstraintReturn objects in this exception. A text message can be obtained
from each ConstraintReturn object indicating what the failure is that it represents.
- See Also:
- Serialized Form
Methods inherited from class com.ibm.websphere.exception.DistributedException |
getException, getExceptionInfo, getOriginalException, getPreviousException, printStackTrace, printStackTrace, printSuperStackTrace, setDefaultMessage, setLocalizationInfo |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
constraintReturns
public ConstraintReturn[] constraintReturns
- Array of ConstraintReturn objects representing the rule or rules that failed.
ConstraintViolationException
public ConstraintViolationException()
- Creates a new ConstraintViolationException
ConstraintViolationException
public ConstraintViolationException(ConstraintReturn[] constraintReturns)
- Creates a new ConstraintViolationException
getConstraintReturns
public ConstraintReturn[] getConstraintReturns()
- Returns the array of ConstraintReturn objects associated with this exception.
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Retrieve the text message for this exception. This will be a combination of the messages
for all the contained ConstraintReturn objects.
- Overrides:
getLocalizedMessage
in class java.lang.Throwable
- Returns:
- Formatted message for this exception.
getMessage
public java.lang.String getMessage()
- Retrieve the text message for this exception. This will be a combination of the messages
for all the contained ConstraintReturn objects.
- Overrides:
getMessage
in class com.ibm.websphere.exception.DistributedException
- Returns:
- Formatted message for this exception.
setConstraintReturns
public void setConstraintReturns(ConstraintReturn[] newConstraintReturns)
- Set the array of ConstraintReturn objects associated with this exception.
- Parameters:
newConstraintReturns
- array of ConstraintReturn objects representing the individual
rule failures.