xrootd
|
Procedure execution status. More...
#include <XrdClStatus.hh>
Public Member Functions | |
Status (uint16_t st=stOK, uint16_t cod=errNone, uint32_t errN=0) | |
Constructor. More... | |
bool | IsError () const |
Error. More... | |
bool | IsFatal () const |
Fatal error. More... | |
bool | IsOK () const |
We're fine. More... | |
int | GetShellCode () const |
Get the status code that may be returned to the shell. More... | |
std::string | ToString () const |
Create a string representation. More... | |
Static Public Member Functions | |
static bool | IsSocketError (uint16_t code) |
Public Attributes | |
uint16_t | status |
Status of the execution. More... | |
uint16_t | code |
Error type, or additional hints on what to do. More... | |
uint32_t | errNo |
Errno, if any. More... | |
Procedure execution status.
Constructor.
|
inline |
|
inline |
Error.
References status, and XrdCl::stError.
|
inline |
Fatal error.
References status, and XrdCl::stFatal.
|
inline |
We're fine.
References status, and XrdCl::stOK.
Referenced by XrdCl::ZipCache::CallHandler(), XrdCl::EcHandler::Close(), XrdCl::MessageUtils::CreateXAttrBody(), XrdCl::ZipCache::Decompress(), XrdCl::ParallelOperation< HasHndl >::AllPolicy::Examine(), XrdCl::ParallelOperation< HasHndl >::AnyPolicy::Examine(), XrdCl::ParallelOperation< HasHndl >::SomePolicy::Examine(), XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::Examine(), XrdCl::Utils::GetProtocolVersion(), XrdCl::GetResponse(), GetShellCode(), XrdCl::EcPgReadResponseHandler::HandleResponse(), XrdCl::UnpackXAttrStatus::HandleResponse(), XrdCl::ExOpenFuncWrapper::HandleResponse(), XrdCl::FutureWrapper< Response >::HandleResponse(), XrdCl::FutureWrapper< void >::HandleResponse(), XrdCl::EcHandler::LoadPlacement(), XrdCl::ZipArchive::make_stat(), XrdCl::EcHandler::Open(), XrdCl::AsyncHSReader::Read(), XrdCl::AsyncMsgReader::Read(), XrdEc::StrmWriter::global_status_t::report_wrt(), XrdCl::Operation< HasHndl >::Run(), XrdCl::OpenFileImpl< HasHndl >::RunImpl(), XrdCl::CloseFileImpl< HasHndl >::RunImpl(), XrdCl::ZipStatImpl< HasHndl >::RunImpl(), XrdCl::ZipListImpl< HasHndl >::RunImpl(), XrdCl::SetXAttrFsImpl< HasHndl >::RunImpl(), XrdCl::SetXAttrImpl< HasHndl >::RunImpl(), XrdCl::GetXAttrFsImpl< HasHndl >::RunImpl(), XrdCl::GetXAttrImpl< HasHndl >::RunImpl(), XrdCl::DelXAttrFsImpl< HasHndl >::RunImpl(), XrdCl::DelXAttrImpl< HasHndl >::RunImpl(), XrdCl::MessageUtils::WaitForResponse(), XrdCl::AsyncMsgWriter::Write(), XrdCl::AsyncHSWriter::Write(), and XrdCl::ZipCache::ZipCache().
|
inlinestatic |
std::string XrdCl::Status::ToString | ( | ) | const |
Create a string representation.
Referenced by XrdCl::XRootDStatus::ToStr(), and XrdCl::PipelineException::what().
uint16_t XrdCl::Status::code |
Error type, or additional hints on what to do.
Referenced by GetShellCode(), XrdCl::AsyncHSReader::Read(), XrdCl::AsyncMsgReader::Read(), XrdCl::XRootDStatus::ToStr(), XrdCl::AsyncMsgWriter::Write(), and XrdCl::AsyncHSWriter::Write().
uint32_t XrdCl::Status::errNo |
Errno, if any.
Referenced by XrdCl::XRootDStatus::ToStr(), XrdCl::AsyncMsgWriter::Write(), and XrdCl::AsyncHSWriter::Write().
uint16_t XrdCl::Status::status |
Status of the execution.
Referenced by XrdCl::UnpackXAttrStatus::HandleResponse(), XrdCl::UnpackXAttr::HandleResponse(), IsError(), IsFatal(), and IsOK().