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 392 of file XrdClOperationHandlers.hh.

Constructor & Destructor Documentation

◆ PipelineException() [1/2]

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

Constructor from XRootDStatus.

Definition at line 399 of file XrdClOperationHandlers.hh.

399  : error( error ), strerr( error.ToString() )
400  {
401 
402  }
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 407 of file XrdClOperationHandlers.hh.

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

Member Function Documentation

◆ GetError()

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

Definition at line 433 of file XrdClOperationHandlers.hh.

434  {
435  return error;
436  }

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 415 of file XrdClOperationHandlers.hh.

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

◆ what()

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

inherited from std::exception

Definition at line 425 of file XrdClOperationHandlers.hh.

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

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