cpe::io_exception Class Reference

Class of exception to handle errors of Input/Output. More...

+ Collaboration diagram for cpe::io_exception:

Public Member Functions

 io_exception ()
 empty constructor
 
 io_exception (const std::string &msg, const std::string &file, const std::string &caller, const int &line)
 constructor with error information
 
std::string info () const
 return error message
 

Private Attributes

std::string message
 error message storage
 
std::string caller
 caller name storage
 
std::string file
 file name storage
 
std::string line
 error line storage
 

Detailed Description

Class of exception to handle errors of Input/Output.

Constructor & Destructor Documentation

cpe::io_exception::io_exception ( )

empty constructor

cpe::io_exception::io_exception ( const std::string &  msg,
const std::string &  file,
const std::string &  caller,
const int &  line 
)

constructor with error information

References line.

Member Function Documentation

std::string cpe::io_exception::info ( ) const

return error message

References caller, file, line, and message.

Referenced by main().

+ Here is the caller graph for this function:

Member Data Documentation

std::string cpe::io_exception::caller
private

caller name storage

Referenced by info().

std::string cpe::io_exception::file
private

file name storage

Referenced by info().

std::string cpe::io_exception::line
private

error line storage

Referenced by info(), and io_exception().

std::string cpe::io_exception::message
private

error message storage

Referenced by info().


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