- Function errh::Message(err)
errh::Message
The function errh::Message
returns a description of the error.
errh::Message(
err ! (input) an element
)
Arguments
- err
An element in the set
errh::PendingErrors
referencing an error.
Return Value
Returns a string if the information is available and the empty string otherwise.
Note
When err
does not reference an element in CrossRef2or 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 _sp_msg := errh::Message(_ep_err);
5 errh::MarkAsHandled( _ep_err, 1 );
6endblock ;
Afterwards:
_sp_msg = "Division by zero error with 1 / 0."
See also
The procedure errh::Adapt
.