Function errh::Category(err)

errh::Category

The function errh::Category returns the error category to which the error belongs.

errh::Category(
        err  ! (input) an element
)

Arguments

err

An element in the set errh::PendingErrors referencing an error.

Return Value

Returns an element in errh::AllErrorCategories if 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

1    block
2            pr_divideByZero();
3    onerror _ep_err do
4            _ep_cat := errh::Category(_ep_err);
5            errh::MarkAsHandled( _ep_err, 1 );
6    endblock ;

Afterwards:

_ep_cat = 'Math'

See also

The function errh::Code, errh::InsideCategory.