Function errh::Line(err, loc)

errh::Line

The function errh::Line returns the line number in the file or attribute in which the error occured.

errh::Line(
        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 a line number if the information is available and 0 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.