![]() |
BRBeans defines one general exception class for exceptions that could 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
will generally be thrown
when an unexpected error occurs within BRBeans. A BusinessRuleBeansException
may
have information in it about the original exception that caused the error.
Doing a printStackTrace
on the BusinessRuleBeansException
will
print out this information as well as the stack trace for the BusinessRuleBeansException
itself. There are also methods on BusinessRuleBeansException
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 pre-defined filtering strategies if an unexpected
number of rules is found on a trigger point call. These two exception both
extend UnexpectedRulesFoundException
which, in turn, extends BusinessRuleBeansException
.
Related concepts... | |
Parent: BRBeans framework runtime | |
View PDF file... | |
To view a PDF file containing this article and related articles, click: | |
![]() | |