Function errh::MarkAsHandled(err, actually)

errh::MarkAsHandled

The procedure errh::MarkAsHandled marks or unmarks an error as handled.

errh::MarkAsHandled(
        err,     ! (input) an element
        actually ! (optional input), default 1.
)

Arguments

err

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

actually

When 1, the error err is marked as handled, when 0, the mark is cleared.

Return Value

Returns a line number if the information is available and 0 otherwise.

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    errh::MarkAsHandled( _ep_err, 1 );
5endblock ;

Which amounts to ignoring the division by zero error.

See also

The function errh::IsMarkedAsHandled.