Main Page | Data Structures | File List | Data Fields | Globals

ioerrors.h

Go to the documentation of this file.
00001 /*
00002  *      Copyright (c) 2004 on behalf of the EU EGEE Project:
00003  *      The European Organization for Nuclear Research (CERN),
00004  *      Istituto Nazionale di Fisica Nucleare (INFN), Italy
00005  *      Datamat Spa, Italy
00006  *      Centre National de la Recherche Scientifique (CNRS), France
00007  *      CS Systeme d'Information (CSSI), France
00008  *      Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden
00009  *      Universiteit van Amsterdam (UvA), Netherlands
00010  *      University of Helsinki (UH.HIP), Finland
00011  *      University of Bergen (UiB), Norway
00012  *      Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom
00013  *
00014  *      GLite Data IO Client module: IO Errors
00015  *
00016  *      Authors: Paolo Badino <paolo.badino@cern.ch>
00017  *      Version info: $Id: ioerrors.h,v 1.2 2005/08/09 10:15:52 zfarkas Exp $
00018  *      Release: $Name: glite-data-io-client_R_1_5_2 $
00019  *
00020  *      Revision history:
00021  *      $Log: ioerrors.h,v $
00022  *      Revision 1.2  2005/08/09 10:15:52  zfarkas
00023  *      Instead of "Unsupported file type" error msg tell what the problem is (lfn/guid problem)
00024  *
00025  *      Revision 1.1  2004/08/30 13:26:45  badino
00026  *      Added to Source Control
00027  *
00028  *
00029  */
00030 
00031 #ifndef GLITE_DATA_IO_IOERRORS_H_
00032 #define GLITE_DATA_IO_IOERRORS_H_
00033 
00034 // Currently, Glite IO Errors are mapped to the aiod one, but this could be 
00035 // changed when the io-daemon will be refactored
00036 // TODO Look also at posix Error codes
00037 #include "glite/data/io/daemon/aioerror.hxx"
00038 
00039 #define GLITE_IO_SUCCESS                AIO_SUCCESS
00040 #define GLITE_IO_ERROR                  AIO_ERROR
00041 #define GLITE_IO_REMOTEERROR            AIO_REMOTEERROR
00042 #define GLITE_IO_OPENERROR              AIO_OPENERROR
00043 #define GLITE_IO_OPENAGAIN              AIO_OPENAGAIN
00044 #define GLITE_IO_READINWRITESESSION     AIO_READINWRITESESSION
00045 #define GLITE_IO_WRITEINREADSESSION     AIO_WRITEINREADSESSION
00046 #define GLITE_IO_SEEKINWRITESESSION     AIO_SEEKINWRITESESSION
00047 #define GLITE_IO_NETREADERROR           AIO_NETREADERROR
00048 #define GLITE_IO_NETWRITEERROR          AIO_NETWRITEERROR
00049 #define GLITE_IO_REMOTEREADERROR        AIO_REMOTEREADERROR
00050 #define GLITE_IO_REMOTEWRITEERROR       AIO_REMOTEWRITEERROR
00051 #define GLITE_IO_CONNECTIONERROR        AIO_CONNECTIONERROR
00052 #define GLITE_IO_ILLEGALGUID            AIO_ILLEGALGUID
00053 #define GLITE_IO_ACCESSDENIED           AIO_ACCESSDENIED
00054 #define GLITE_IO_FILENOTEXISTING        AIO_FILENOTEXISTING
00055 #define GLITE_IO_FILENAMETOOLONG        AIO_FILENAMETOOLONG
00056 #define GLITE_IO_MAXBLOCKEXCEEDED       AIO_MAXBLOCKEXCEEDED
00057 #define GLITE_IO_REMOTEFILESIZEERROR    AIO_REMOTEFILESIZEERROR
00058 #define GLITE_IO_WRITEISEXCLUSIVE       AIO_WRITEISEXCLUSIVE
00059 #define GLITE_IO_SERVERFULL             AIO_SERVERFULL
00060 #define GLITE_IO_LOCALREADERROR         AIO_LOCALREADERROR
00061 #define GLITE_IO_LOCALWRITEERROR        AIO_LOCALWRITEERROR
00062 #define GLITE_IO_NOENVELOPE             AIO_NOENVELOPE
00063 #define GLITE_IO_CRYPTENVERROR          AIO_CRYPTENVERROR
00064 #define GLITE_IO_DECRYPTENVERROR        AIO_DECRYPTENVERROR
00065 #define GLITE_IO_KEYERROR               AIO_KEYERROR
00066 #define GLITE_IO_NOSERVERSSLSUPPORT     AIO_NOSERVERSSLSUPPORT
00067 #define GLITE_IO_NOCLIENTSSLSUPPORT     AIO_NOCLIENTSSLSUPPORT
00068 #define GLITE_IO_NOCACHE                AIO_NOCACHE
00069 #define GLITE_IO_CACHEZOMBIE            AIO_CACHEZOMBIE
00070 #define GLITE_IO_REDIRECTED             AIO_REDIRECTED
00071 
00072 // New ones
00073 #define GLITE_IO_CONFIGERROR            -0x500
00074 #define GLITE_IO_NOTIMPLEMENTED         -0x501
00075 #define GLITE_IO_INVALIDHANDLE          -0x502
00076 
00077 // Error codes related to file names
00078 #define GLITE_IO_NAME_OK        0
00079 #define GLITE_IO_NULL_NAME      -0x503
00080 #define GLITE_IO_INVALID_GUID       -0x504
00081 #define GLITE_IO_INVALID_LFN        -0x505
00082 
00083 #endif //GLITE_DATA_IO_IOERRORS_H_
The GLite Project. All rights reserved.