Warning, file /DD4hep/DDCore/src/Errors.cpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include <DD4hep/Errors.h>
0017
0018
0019 #include <cerrno>
0020 #include <cstring>
0021
0022 #define IMPLEMENT(x,y) std::string x () { return ::strerror( errno = y ); }
0023
0024 namespace dd4hep { namespace Errors {
0025 IMPLEMENT(noPermission,EPERM)
0026 IMPLEMENT(noEntry,ENOENT)
0027 IMPLEMENT(ioError,EIO)
0028 IMPLEMENT(invalidArg,EINVAL)
0029 IMPLEMENT(noSys,ENOSYS)
0030 IMPLEMENT(cancelled,ECANCELED)
0031 #ifdef __APPLE__
0032 IMPLEMENT(linkRange,EINVAL)
0033 IMPLEMENT(noKey,EINVAL)
0034 #else
0035 IMPLEMENT(linkRange,ELNRNG)
0036 IMPLEMENT(noKey,ENOKEY)
0037 #endif
0038 }}