XRootD
XrdCl::PipelineException Class Reference

Pipeline exception, wrapps an XRootDStatus. More...

#include <XrdClOperationHandlers.hh>

+ Inheritance diagram for XrdCl::PipelineException:
+ Collaboration diagram for XrdCl::PipelineException:

Public Member Functions

 PipelineException (const PipelineException &ex)
 Copy constructor. More...
 
 PipelineException (const XRootDStatus &error)
 Constructor from XRootDStatus. More...
 
const XRootDStatusGetError () const
 
PipelineExceptionoperator= (const PipelineException &ex)
 Assigment operator. More...
 
const char * what () const noexcept
 inherited from std::exception More...
 

Detailed Description

Pipeline exception, wrapps an XRootDStatus.

Definition at line 391 of file XrdClOperationHandlers.hh.

Constructor & Destructor Documentation

◆ PipelineException() [1/2]

XrdCl::PipelineException::PipelineException ( const XRootDStatus error)
inline

Constructor from XRootDStatus.

Definition at line 398 of file XrdClOperationHandlers.hh.

398  : error( error ), strerr( error.ToString() )
399  {
400 
401  }
std::string ToString() const
Create a string representation.
Definition: XrdClStatus.cc:97

◆ PipelineException() [2/2]

XrdCl::PipelineException::PipelineException ( const PipelineException ex)
inline

Copy constructor.

Definition at line 406 of file XrdClOperationHandlers.hh.

406  : error( ex.error ), strerr( ex.error.ToString() )
407  {
408 
409  }

Member Function Documentation

◆ GetError()

const XRootDStatus& XrdCl::PipelineException::GetError ( ) const
inline
Returns
: the XRootDStatus

Definition at line 432 of file XrdClOperationHandlers.hh.

433  {
434  return error;
435  }

Referenced by DoStat().

+ Here is the caller graph for this function:

◆ operator=()

PipelineException& XrdCl::PipelineException::operator= ( const PipelineException ex)
inline

Assigment operator.

Definition at line 414 of file XrdClOperationHandlers.hh.

415  {
416  error = ex.error;
417  strerr = ex.strerr;
418  return *this;
419  }

◆ what()

const char* XrdCl::PipelineException::what ( ) const
inlinenoexcept

inherited from std::exception

Definition at line 424 of file XrdClOperationHandlers.hh.

425  {
426  return strerr.c_str();
427  }

The documentation for this class was generated from the following file: