com.ibm.websphere.brb
Class ConstraintViolationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ibm.websphere.exception.DistributedException
              extended bycom.ibm.websphere.brb.BusinessRuleBeansException
                  extended bycom.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

Field Summary
 ConstraintReturn[] constraintReturns
          Array of ConstraintReturn objects representing the rule or rules that failed.
 
Fields inherited from class com.ibm.websphere.brb.BusinessRuleBeansException
DEFAULT_BRB_RESOURCE_BUNDLE
 
Constructor Summary
ConstraintViolationException()
          Creates a new ConstraintViolationException
ConstraintViolationException(ConstraintReturn[] constraintReturns)
          Creates a new ConstraintViolationException
 
Method Summary
 ConstraintReturn[] getConstraintReturns()
          Returns the array of ConstraintReturn objects associated with this exception.
 java.lang.String getLocalizedMessage()
          Retrieve the text message for this exception.
 java.lang.String getMessage()
          Retrieve the text message for this exception.
 void setConstraintReturns(ConstraintReturn[] newConstraintReturns)
          Set the array of ConstraintReturn objects associated with this exception.
 
Methods inherited from class com.ibm.websphere.exception.DistributedException
getException, getExceptionInfo, getOriginalException, getPreviousException, printStackTrace, printStackTrace, printStackTrace, printSuperStackTrace, printSuperStackTrace, setDefaultMessage, setLocalizationInfo
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

constraintReturns

public ConstraintReturn[] constraintReturns
Array of ConstraintReturn objects representing the rule or rules that failed.

Constructor Detail

ConstraintViolationException

public ConstraintViolationException()
Creates a new ConstraintViolationException


ConstraintViolationException

public ConstraintViolationException(ConstraintReturn[] constraintReturns)
Creates a new ConstraintViolationException

Method Detail

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.

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.

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.