- Function errh::Multiplicity(err)
errh::Multiplicity
The function errh::Multiplicity
returns the number of occurrences of
this error.
errh::Multiplicity(
err ! (input) an element
)
Arguments
- err
An element in the set
errh::PendingErrors
referencing an error.
Return Value
Returns the number of occurrences of this error.
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 _p_mult := errh::Multiplicity(_ep_err);
5 errh::MarkAsHandled( _ep_err, 1 );
6endblock ;
Afterwards:
_p_mult = 1
See also
The functions errh::Code
, errh::Category
, errh::Message
and errh::Severity
.