19 #ifndef __XRD_CL_STATUS_HH__
20 #define __XRD_CL_STATUS_HH__
31 const uint16_t
stOK = 0x0000;
133 return (
code/100)+50;
138 return int(
code / 100 ) == 1;
const uint16_t errPoll
error while polling descriptors
const uint16_t errUnknown
Unknown error.
const uint16_t errQueryNotSupported
const uint16_t errInvalidAddr
const uint16_t errStreamDisconnect
const uint16_t errRedirectLimit
const uint16_t errUninitialized
const uint16_t errSocketOptError
const uint16_t errErrorResponse
const uint16_t errTlsError
const uint16_t errOperationExpired
const uint16_t errNotImplemented
Operation is not implemented.
const uint16_t stFatal
Fatal error, it's still an error.
const uint16_t errPollerError
const uint16_t errUnknownCommand
const uint16_t stError
An error occurred that could potentially be retried.
const uint16_t errResponseNegative
Query response was negative.
const uint16_t errLoginFailed
const uint16_t errNoMoreFreeSIDs
const uint16_t errInProgress
const uint16_t errNotFound
const uint16_t errSocketTimeout
const uint16_t errDataError
data is corrupted
const uint16_t errInternal
Internal error.
const uint16_t stOK
Everything went OK.
const uint16_t errInvalidOp
const uint16_t suNotStarted
const uint16_t errHandShakeFailed
const uint16_t errConfig
System misconfigured.
const uint16_t suAlreadyDone
const uint16_t errOSError
const uint16_t errPipelineFailed
Pipeline failed and operation couldn't be executed.
const uint16_t errInvalidResponse
const uint16_t errInvalidArgs
const uint16_t errInvalidRedirectURL
const uint16_t errConnectionError
const uint16_t errNotSupported
const uint16_t errLocalError
const uint16_t errSocketError
const uint16_t errCorruptedHeader
const uint16_t errRetry
Try again for whatever reason.
const uint16_t errCheckSumError
const uint16_t errThresholdExceeded
const uint16_t errOperationInterrupted
const uint16_t suContinue
const uint16_t errFcntl
failed manipulate file descriptor
const uint16_t errNoMoreReplicas
No more replicas to try.
const uint16_t errNone
No error.
const uint16_t errInvalidSession
const uint16_t errRedirect
const uint16_t errSocketDisconnected
const uint16_t errAuthFailed
const uint16_t errInvalidMessage
Procedure execution status.
Status(uint16_t st=stOK, uint16_t cod=errNone, uint32_t errN=0)
Constructor.
uint16_t code
Error type, or additional hints on what to do.
uint16_t status
Status of the execution.
bool IsOK() const
We're fine.
bool IsFatal() const
Fatal error.
std::string ToString() const
Create a string representation.
bool IsError() const
Error.
static bool IsSocketError(uint16_t code)
uint32_t errNo
Errno, if any.
int GetShellCode() const
Get the status code that may be returned to the shell.