- Function errh::NumberOfLocations(err)
errh::NumberOfLocations
The function errh::NumberOfLocations
returns the number of locations
stored to which this error is relevant. The relevant locations are file
(if any) that is being read, and the procedures currently active.
errh::NumberOfLocations(
err ! (input) an element
)
Arguments
- err
An element in the set
errh::PendingErrors
referencing an error.
Return Value
Returns the number locations for which this error is relevant.
Note
When err
doesn’t 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_noLoc := errh::NumberOfLocations(_ep_err);
5 errh::MarkAsHandled( _ep_err, 1 );
6endblock ;
Afterwards:
_p_noLoc >= 1
Depending on the number of procedures on the running stack.
See also
The functions errh::Node
, errh::Attribute
and errh::Line
.