#include <inotify-cxx.h>
Public Member Functions | |
| InotifyException (const std::string &rMsg="", int iErr=0, void *pSrc=NULL) | |
| Constructor. | |
| const std::string & | GetMessage () const |
| Returns the exception message. | |
| int | GetErrorNumber () const |
| Returns the exception error number. | |
| void * | GetSource () const |
| Returns the exception source. | |
Protected Attributes | |
| std::string | m_msg |
| message | |
| int | m_err |
| error number | |
| void * | m_pSrc |
| source | |
This class allows to acquire information about exceptional events. It makes easier to log or display error messages and to identify problematic code locations.
Although this class is basically thread-safe it is not intended to be shared between threads.
| InotifyException::InotifyException | ( | const std::string & | rMsg = "", |
|
| int | iErr = 0, |
|||
| void * | pSrc = NULL | |||
| ) | [inline] |
Constructor.
| [in] | rMsg | message |
| [in] | iErr | error number (see errno.h) |
| [in] | pSrc | source |
| const std::string& InotifyException::GetMessage | ( | ) | const [inline] |
Returns the exception message.
| int InotifyException::GetErrorNumber | ( | ) | const [inline] |
Returns the exception error number.
If not applicable this value is 0 (zero).
| void* InotifyException::GetSource | ( | ) | const [inline] |
Returns the exception source.
std::string InotifyException::m_msg [protected] |
message
int InotifyException::m_err [protected] |
error number
void* InotifyException::m_pSrc [mutable, protected] |
source
1.5.1