cpp-pthread  (v1.7.3)
Simple C++ wrapper to pthread functions.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Public Member Functions | List of all members
pthread::pthread_exception Class Reference
Inheritance diagram for pthread::pthread_exception:
pthread::condition_variable_exception pthread::mutex_exception pthread::read_write_lock_exception pthread::thread_exception pthread::timeout_exception

Public Member Functions

 pthread_exception (const std::string &message, const int pthread_errno=-1)
 
virtual const char * what () const noexceptoverride
 
virtual int pthread_errno ()
 
virtual const char * pthread_errmsg ()
 

Detailed Description

Examples:
exceptions-tests.cpp.

Definition at line 35 of file exceptions.hpp.

Constructor & Destructor Documentation

pthread::pthread_exception::pthread_exception ( const std::string &  message,
const int  pthread_errno = -1 
)
Parameters
messageerror message
pthread_errnoa pthread function return code.

Definition at line 15 of file exceptions.cpp.

Member Function Documentation

const char * pthread::pthread_exception::pthread_errmsg ( )
virtual
Returns
related pthread_errno error message using strerror
Examples:
exceptions-tests.cpp.

Definition at line 36 of file exceptions.cpp.

int pthread::pthread_exception::pthread_errno ( )
virtual
Returns
pthread error code that was at the orgin of the error

Definition at line 32 of file exceptions.cpp.

const char * pthread::pthread_exception::what ( ) const
overridevirtualnoexcept
Returns
exception's error message.
Examples:
exceptions-tests.cpp.

Definition at line 27 of file exceptions.cpp.


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