75 if (it == s_NSExceptionMap.end())
104 return "eClientDataVersionMismatch";
113 return "eTooManyPreferredAffinities";
116 default:
return "eInvalid";
156 return "NetSchedule server internal error";
158 return "NetSchedule server cannot parse the client command";
160 return "NetSchedule server received incomplete client authentication";
162 return "The job is not found";
164 return "The job group is not found";
166 return "The job affinity is not found";
168 return "The job status does not support the requested operation";
170 return "The queue is not found";
172 return "The queue class is not found";
174 return "The service is not found";
176 return "The provided data are too long";
178 return "The command requires a non-anonymous client";
180 return "The client data cannot be set because the data "
181 "version doesn't match";
183 return "Not enough privileges to perform the requested operation";
185 return "Cannot submit a job because submits are disabled";
187 return "NetSchedule refuses command execution because "
188 "it is shutting down";
190 return "A dynamic queue cannot be created because "
191 "another queue with the same name already exists";
193 return "The command is obsolete and will be ignored";
195 return "Invalid value for a command argument";
197 return "The requested job operation is rejected "
198 "because the provided authorization token is invalid";
200 return "There is no room for a new preferred affinity";
202 return "The preferred affinities expired and were reset "
203 "because the worker node did not communicate within "
204 "the timeout. The command execution is refused.";
206 return "BerkleyDB has too many incomplete transactions at the moment. "
class CStaticArrayMap<> provides access to a static array in much the same way as CStaticArraySet<>,...
TBase::const_iterator const_iterator
TErrCode GetErrCode(void) const
Get error code.
@ eInvalid
To be used ONLY as a return value; please, NEVER throw an exception with this code.
unsigned ErrCodeToHTTPStatusCode() const
static const char * GetErrCodeDescription(CException::TErrCode err_code)
virtual const char * GetErrCodeString() const override
Get error code interpreted as text.
static CException::TErrCode GetCode(const string &name)
@ eClientDataVersionMismatch
@ eTooManyPreferredAffinities
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
CStaticArrayMap< const char *, CException::TErrCode, PNocase_CStr > TNSExceptionMap
SStaticPair< const char *, CException::TErrCode > TExceptionMapElem
DEFINE_STATIC_ARRAY_MAP(TNSExceptionMap, s_NSExceptionMap, s_NSExceptionArray)
static const TExceptionMapElem s_NSExceptionArray[]
Template structure SStaticPair is simlified replacement of STL pair<> Main reason of introducing this...