- Function errh::Filename(err)
errh::Filename
The function errh::Filename
returns the file in which the error
occurred during reading from file
errh::Filename(
err ! (input) an element
)
Arguments
- err
An element in the set
errh::PendingErrors
referencing an error.
Return Value
Returns a string containing the filename in which the error occurred, if that error occurred during reading from file and the empty string 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_readError();
3onerror _ep_err do
4 _sp_file := errh::Filename(_ep_err );
5 errh::MarkAsHandled( _ep_err, 1 );
6endblock ;
Afterwards:
_sp_file = "./verifiedData/readInError.txt"
When that was the file being read.
See also
The functions errh::Line
and errh::Column
.