nidas v1.2.3
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
nidas::util::IOException Class Reference

#include <IOException.h>

Inheritance diagram for nidas::util::IOException:
Inheritance graph
[legend]

Public Member Functions

 IOException (const std::string &device, const std::string &task, const std::string &msg)
 Create an IOException, passing a device name, task (e.g. "read" or "ioctl"), and a message.
 
 IOException (const std::string &task, const std::string &msg)
 Create an IOException, passing a device name, task (e.g. "read" or "ioctl"), and a message.
 
 IOException (const std::string &device, const std::string &task, int err)
 Create an IOException, passing a device name, task (e.g. "read" or "ioctl"), and an errno value.
 
 IOException (const IOException &e)
 Copy constructor.
 
IOExceptionoperator= (const IOException &e)
 
virtual Exceptionclone () const
 clone myself (a "virtual" constructor).
 
virtual int getErrno () const
 
virtual std::string toString () const throw ()
 
virtual const char * what () const throw ()
 

Static Public Member Functions

static std::string errnoToString (int err)
 Return string description of an errno (from errno.h).
 

Protected Member Functions

 IOException (const std::string &etype, const std::string &device, const std::string &task, int err)
 Constructor used by sub-classes of IOException (e.g.
 
 IOException (const std::string &etype, const std::string &device, const std::string &task, const std::string &msg)
 Constructor used by sub-classes of IOException (e.g.
 

Protected Attributes

std::string _what
 
int _errno
 

Constructor & Destructor Documentation

◆ IOException() [1/6]

nidas::util::IOException::IOException ( const std::string & etype,
const std::string & device,
const std::string & task,
int err )
inlineprotected

Constructor used by sub-classes of IOException (e.g.

/ EOFException).

Referenced by clone().

◆ IOException() [2/6]

nidas::util::IOException::IOException ( const std::string & etype,
const std::string & device,
const std::string & task,
const std::string & msg )
inlineprotected

Constructor used by sub-classes of IOException (e.g.

/ EOFException).

◆ IOException() [3/6]

nidas::util::IOException::IOException ( const std::string & device,
const std::string & task,
const std::string & msg )
inline

Create an IOException, passing a device name, task (e.g. "read" or "ioctl"), and a message.

◆ IOException() [4/6]

nidas::util::IOException::IOException ( const std::string & task,
const std::string & msg )
inline

Create an IOException, passing a device name, task (e.g. "read" or "ioctl"), and a message.

◆ IOException() [5/6]

nidas::util::IOException::IOException ( const std::string & device,
const std::string & task,
int err )
inline

Create an IOException, passing a device name, task (e.g. "read" or "ioctl"), and an errno value.

◆ IOException() [6/6]

nidas::util::IOException::IOException ( const IOException & e)
inline

Copy constructor.

Member Function Documentation

◆ clone()

virtual Exception * nidas::util::IOException::clone ( ) const
inlinevirtual

clone myself (a "virtual" constructor).

Reimplemented from nidas::util::Exception.

References IOException().

◆ errnoToString()

string nidas::util::Exception::errnoToString ( int err)
staticinherited

◆ getErrno()

virtual int nidas::util::Exception::getErrno ( ) const
inlinevirtualinherited

◆ operator=()

IOException & nidas::util::IOException::operator= ( const IOException & e)
inline

◆ toString()

virtual std::string nidas::util::Exception::toString ( ) const
throw ( )
inlinevirtualinherited

◆ what()

virtual const char * nidas::util::Exception::what ( ) const
throw ( )
inlinevirtualinherited

Member Data Documentation

◆ _errno

int nidas::util::Exception::_errno
protectedinherited

◆ _what

std::string nidas::util::Exception::_what
protectedinherited

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