added better network error message support.

This commit is contained in:
crs
2002-09-14 20:56:28 +00:00
parent 4586f88188
commit fec679cfe5
8 changed files with 155 additions and 54 deletions

View File

@@ -55,7 +55,7 @@ private:
//! Mix-in for handling \c errno
/*!
This mix-in class for exception classes provides storage and query of
\c errno.
\c errno. On Windows, it uses GetLastError() instead of errno.
*/
class MXErrno {
public:
@@ -63,6 +63,7 @@ public:
MXErrno();
//! Save \c err as the error code
MXErrno(int err);
virtual ~MXErrno();
//! @name accessors
//@{
@@ -71,12 +72,13 @@ public:
int getErrno() const;
//! Get the human readable string for the error code
const char* getErrstr() const;
virtual const char* getErrstr() const;
//@}
private:
int m_errno;
mutable char* m_string;
};
#endif