XRootD
Loading...
Searching...
No Matches
XrdEc::IOError Class Reference

Generic I/O exception, wraps up XrdCl::XRootDStatus (. More...

#include <XrdEcUtilities.hh>

+ Inheritance diagram for XrdEc::IOError:
+ Collaboration diagram for XrdEc::IOError:

Public Types

enum  { ioTooManyErrors }
 

Public Member Functions

 IOError (const IOError &err) noexcept
 Copy constructor.
 
 IOError (const XrdCl::XRootDStatus &st) noexcept
 
virtual ~IOError ()
 Destructor.
 
IOErroroperator= (const IOError &err) noexcept
 Assigment operator.
 
const XrdCl::XRootDStatusStatus () const
 
virtual const char * what () const noexcept
 overloaded
 

Detailed Description

Generic I/O exception, wraps up XrdCl::XRootDStatus (.

See also
XRootDStatus)

Definition at line 74 of file XrdEcUtilities.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ioTooManyErrors 

Definition at line 127 of file XrdEcUtilities.hh.

128 {
130 };

Constructor & Destructor Documentation

◆ IOError() [1/2]

XrdEc::IOError::IOError ( const XrdCl::XRootDStatus & st)
inlinenoexcept

Constructor

Parameters
st: status

Definition at line 83 of file XrdEcUtilities.hh.

83 : st( st ), msg( st.ToString() )
84 {
85 }
std::string ToString() const
Create a string representation.

◆ IOError() [2/2]

XrdEc::IOError::IOError ( const IOError & err)
inlinenoexcept

Copy constructor.

Definition at line 90 of file XrdEcUtilities.hh.

90 : st( err.st ), msg( err.st.ToString() )
91 {
92 }

◆ ~IOError()

virtual XrdEc::IOError::~IOError ( )
inlinevirtual

Destructor.

Definition at line 107 of file XrdEcUtilities.hh.

108 {
109 }

Member Function Documentation

◆ operator=()

IOError & XrdEc::IOError::operator= ( const IOError & err)
inlinenoexcept

Assigment operator.

Definition at line 97 of file XrdEcUtilities.hh.

98 {
99 st = err.st;
100 msg = err.st.ToString();
101 return *this;
102 }

◆ Status()

const XrdCl::XRootDStatus & XrdEc::IOError::Status ( ) const
inline
Returns
: the status

Definition at line 122 of file XrdEcUtilities.hh.

123 {
124 return st;
125 }

◆ what()

virtual const char * XrdEc::IOError::what ( ) const
inlinevirtualnoexcept

overloaded

See also
std::exception

Definition at line 114 of file XrdEcUtilities.hh.

115 {
116 return msg.c_str();
117 }

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