BRBeans run-time exception handling

Business Rule Beans (BRBeans) defines one general exception class for exceptions that might be exposed to the user. All other BRBeans exceptions inherit from this class. The name of this class is com.ibm.websphere.brb.BusinessRuleBeansException. A BusinessRuleBeansException is generally thrown when an unexpected error occurs within BRBeans. A BusinessRuleBeansException might have information in it about the original exception that caused the error. Doing a printStackTrace on the BusinessRuleBeansException prints out this information and the stack trace for the BusinessRuleBeansException itself. Also, there are methods to access the original exception programmatically, if desired.

BRBeans also defines a ConstraintViolationException, which extends BusinessRuleBeansException. A ConstraintViolationException is thrown if the ThrowViolationCombiningStrategy is specified on the TriggerPoint and the rule returns a false value (either a ConstraintReturn or a boolean).

Finally, BRBeans defines two exceptions, NoRuleFoundException and MultipleRulesFoundException, that are thrown by some of the predefined filtering strategies if an unexpected number of rules is found on a trigger point call. These two exceptions both extend UnexpectedRulesFoundException which, in turn, extends BusinessRuleBeansException.


Related concepts
Overview of Business Rule Beans



Searchable topic ID:   cbrb_rtexc
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/brb/concepts/cbrb_rtexc.html

Library | Support | Terms of Use | Feedback