The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
libc_error Class Reference

Exception type used to propagate C runtime errors across functions. More...

#include <libc_error.hpp>

Inheritance diagram for libc_error:
Inheritance graph

Public Member Functions

 libc_error ()
 
virtual ~libc_error () throw ()
 
int num () const
 Returns the value of errno at the time the exception was thrown. More...
 
const std::stringdesc () const
 Returns an explanatory string describing the runtime error alone. More...
 
const char * what () const throw ()
 Returns an explanatory string describing the exception. More...
 

Private Attributes

int e_
 
std::string desc_
 
std::string msg_
 

Detailed Description

Exception type used to propagate C runtime errors across functions.

Definition at line 19 of file libc_error.hpp.

Constructor & Destructor Documentation

libc_error::libc_error ( )
inline

Definition at line 22 of file libc_error.hpp.

virtual libc_error::~libc_error ( )
throw (
)
inlinevirtual

Definition at line 29 of file libc_error.hpp.

Member Function Documentation

const std::string& libc_error::desc ( ) const
inline

Returns an explanatory string describing the runtime error alone.

Definition at line 40 of file libc_error.hpp.

References desc_.

int libc_error::num ( ) const
inline

Returns the value of errno at the time the exception was thrown.

Definition at line 34 of file libc_error.hpp.

References e_.

const char* libc_error::what ( ) const
throw (
)
inline

Returns an explanatory string describing the exception.

Definition at line 46 of file libc_error.hpp.

References msg_.

Member Data Documentation

std::string libc_error::desc_
private

Definition at line 53 of file libc_error.hpp.

Referenced by desc().

int libc_error::e_
private

Definition at line 52 of file libc_error.hpp.

Referenced by num().

std::string libc_error::msg_
private

Definition at line 54 of file libc_error.hpp.

Referenced by what().


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