Function errh::Node(err, loc)

errh::Node

The function errh::Node returns the identifier or node in which the error occurred.

errh::Node(
        err,  ! (input) an element
        loc   ! (optional input) an integer, default 1.
)

Arguments

err

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

loc

An integer in the range { 1 .. errh::NumberOfLocations(err) }.

Return Value

Returns an element in AllSymbols 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_node := errh::Node(_ep_err);
5    errh::MarkAsHandled( _ep_err, 1 );
6endblock ;

Afterwards:

_ep_node = 'chapterSystem::sectionError::pr_divideByZero'

See also

The functions errh::Attribute, errh::Line and errh::NumberOfLocations.