- Function errh::InsideCategory(err, cat)
errh::InsideCategory
The function errh::InsideCategory
returns 1 if the error is inside
the given category.
errh::InsideCategory(
err, ! (input) an element
cat ! (input) an element
)
Arguments
- err
An element in the set
errh::PendingErrors
referencing an error.- cat
An element in the set
errh::AllErrorCategories
referencing an error.
Return Value
Returns 1 if
err
in inside the categorycat
and 0 otherwise.
Note
When err
does not reference an element in errh::PendingErrors
or when the
current filter is the filter To Global Collector
an additional error
will be raised.
Example
1block
2 pr_divideByZero();
3onerror _ep_err do
4 _bp_insideCat := errh::InsideCategory(_ep_err, 'Solver' );
5 errh::MarkAsHandled( _ep_err, 1 );
6endblock ;
Afterwards:
_bp_insideCat = 0
Because the error is unrelated to a solver.
See also
The functions errh::Code
and errh::Category
.