Re: [ROOT] TNetFile

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue Jun 26 2001 - 16:19:17 MEST


Hi Susan,

  I've made the error codes available via a new method TNetFile::GetErrorCode().
In case there is no error it returns -1, all other codes match the gRootErrStr
table.

Cheers, Fons.



Susan Kasahara wrote:
> 
> Hi rooters,
> I am using TNetFile to access remote files served by rootd.  I'm
> interested in having better access to the error codes that are
> sent by rootd to TNetFile when it fails to open a file successfully.
> These error codes are the enumerated list ERootdErrors defined
> in rootd.h and are translated into strings by gRootdErrStr (defined in
> TNetFile).  I see, for example,  that the TNetFile constructor uses the socket
> received ERootdErrors code from rootd to print an error statement when an
> error occurs during the opening of a file.
>   What I would like is to have access to this error code when TNetFile
> fails to open a file, so that I can take appropriate action during job run-time
> (sort of like using "errno" to det

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET