#include <UniEvent/UNIXError.h>
Inheritance diagram for strmod::unievent::UNIXError:

Public Methods | |
| UNIXError (const char *syscallname, const lcore::LCoreError &lcerr) throw () | |
| UNIXError (const char *syscallname, int errnum, const lcore::LCoreError &lcerr) throw () | |
| const char * | getSyscallName () const throw () |
| Return name of system call that caused error. | |
| int | getErrorNum () const throw () |
| The numeric value of the error, which corresponds to values from errno.h. | |
| void | getErrorString (char *buf, size_t buflen) const throw () |
The result of doing strerror_r(getErrorNum(), buf, buflen). | |
| bool | isEOF () const throw () |
| Is this an End-Of-File error? | |
Static Public Methods | |
| int | getErrno () |
Static Public Attributes | |
| const UNIXError | S_noerror |
| A value for no error at all. | |
There are no member functions to modify its value, so this is essentially a const value. This makes the class multithread safe.
There is a special kind of error called an EOF error. An EOF error signals that an EOF condition exists on the file descriptor in questoin. The 'errno' value is ESUCCESS (0) in this case.
Definition at line 47 of file UNIXError.h.
|
||||||||||||
|
Definition at line 104 of file UNIXError.h. |
|
||||||||||||||||
|
Definition at line 117 of file UNIXError.h. |
|
||||||||||||
|
The result of doing
buf[buflen - 1] will always be set to '\0'.
One some platforms (like Linux), strerror is not thread safe, and a different function, strerror_r is called. strerror_r requires you to supply a buffer. The sterror_r interface is supported since the strerror_r interface can be implemented in terms of the strerror interface, but not the other way around. Definition at line 37 of file UNIXError.cxx. |
1.3-rc1