Desafio Labsec (SGC)
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
IoException Class Reference

I/O Exception More...

#include <IoException.h>

Inheritance diagram for IoException:

Public Types

enum  ErrorCode { UNKNOWN, READ_FAILED, WRITE_FAILED }
 

Public Member Functions

 IoException (std::string where)
 
 IoException (std::string where, IoException::ErrorCode errorCode)
 
 ~IoException () throw ()
 
virtual std::string getMessage () const
 
virtual std::string toString () const
 
virtual IoException::ErrorCode getErrorCode ()
 

Static Public Member Functions

static std::string errorCode2Message (IoException::ErrorCode errorCode)
 

Protected Attributes

IoException::ErrorCode errorCode
 

Detailed Description

I/O Exception

Use this class to throw I/O exceptions when reading or writing files.

See also
libcryptosec/LibCryptoSecException
Author
Lucas Perin

Member Enumeration Documentation

◆ ErrorCode

Enumerator
UNKNOWN 
READ_FAILED 
WRITE_FAILED 

Constructor & Destructor Documentation

◆ IoException() [1/2]

IoException::IoException ( std::string  where)
inline

◆ IoException() [2/2]

IoException::IoException ( std::string  where,
IoException::ErrorCode  errorCode 
)
inline

◆ ~IoException()

IoException::~IoException ( )
throw (
)
inline

Member Function Documentation

◆ errorCode2Message()

static std::string IoException::errorCode2Message ( IoException::ErrorCode  errorCode)
inlinestatic

◆ getErrorCode()

virtual IoException::ErrorCode IoException::getErrorCode ( )
inlinevirtual

◆ getMessage()

virtual std::string IoException::getMessage ( ) const
inlinevirtual

◆ toString()

virtual std::string IoException::toString ( ) const
inlinevirtual

Member Data Documentation

◆ errorCode

IoException::ErrorCode IoException::errorCode
protected

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