- Function errh::Code(err)
errh::Code
The function errh::Code
returns the identification code of the
format string.
errh::Code(
err ! (input) an element
)
Arguments
- err
An element in the set
errh::PendingErrors
referencing an error.
Return Value
Returns an element in
errh::ErrorCodes
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
1block
2 pr_divideByZero();
3onerror _ep_err do
4 _ep_code := errh::Code(_ep_err);
5 errh::MarkAsHandled( _ep_err, 1 );
6endblock ;
Afterwards:
_ep_code = 'EXE_PARALLEL_ENGINE'
See also
The function errh::Category
and the procedure errh::Adapt
. The predeclared
identifier errh::PendingErrors
.