- Function errh::Severity(err)
errh::Severity
The function errh::Severity returns the severity of the error.
errh::Severity(
err ! (input) an element
)
Arguments
- err
An element in the set
errh::PendingErrorsreferencing an error.
Return Value
Returns an element in
errh::AllErrorSeveritiesif the information is available and the empty element 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 _ep_sev := errh::severity(_ep_err);
5 errh::MarkAsHandled( _ep_err, 1 );
6endblock ;
Afterwards:
_ep_sev = 'error'
See also
The procedures errh::Adapt and errh::MarkAsHandled.