|
static WvString | strerror (int errnum) |
| A replacement for the operating system strerror() function that can map more kinds of error strings (especially in win32).
|
|
Definition at line 19 of file wvpushdir.h.
◆ WvPushDir()
◆ ~WvPushDir()
WvPushDir::~WvPushDir |
( |
| ) |
|
|
inline |
◆ operator new()
void * WvPushDir::operator new |
( |
size_t |
| ) |
|
|
inline |
◆ get()
int WvError::get |
( |
| ) |
const |
|
inlineinherited |
◆ str()
◆ set() [1/4]
void WvError::set |
( |
int |
_errnum | ) |
|
|
inlineinherited |
◆ set() [2/4]
◆ set() [3/4]
void WvError::set |
( |
WVSTRING_FORMAT_DECL |
| ) |
|
|
inlineinherited |
◆ set() [4/4]
◆ set_both()
void WvError::set_both |
( |
int |
_errnum, |
|
|
WvStringParm |
specialerr |
|
) |
| |
|
inlineinherited |
◆ reset()
◆ isok()
virtual bool WvErrorBase::isok |
( |
| ) |
const |
|
inlinevirtualinherited |
By default, returns true if geterr() == 0.
Might be overridden so that isok() == false even though no error code has been specified.
Reimplemented in WvBufStream, WvDBusServer, WvDSAKey, WvEncoderStream, WvFdStream, WvIStreamList, WvListener, WvNullListener, WvLog, WvSSLStream, WvStream, WvStreamClone, WvTCPConn, WvTimeoutStream, WvTimeStream, WvReadLineStream, _WvConStream, and IWvStream.
Definition at line 39 of file wverror.h.
Referenced by WvListener::isok(), WvStream::isok(), and WvGlob::set().
◆ geterr()
virtual int WvErrorBase::geterr |
( |
| ) |
const |
|
inlinevirtualinherited |
If isok() is false, return the system error number corresponding to the error, -1 for a special error string (which you can obtain with errstr()) or 0 on end of file.
If isok() is true, returns an undefined number.
Reimplemented in WvDBusServer, and WvStreamClone.
Definition at line 48 of file wverror.h.
Referenced by UniIniGen::commit(), UniFileSystemGen::get(), WvDBusServer::geterr(), WvStreamClone::geterr(), WvEncoderStream::isok(), UniConfDaemon::listen(), UniIniGen::refresh(), WvStream::seterr(), and WvMagicCircle::WvMagicCircle().
◆ errstr()
◆ strerror()
WvString WvErrorBase::strerror |
( |
int |
errnum | ) |
|
|
staticinherited |
◆ seterr() [1/4]
void WvErrorBase::seterr |
( |
int |
_errnum | ) |
|
|
virtualinherited |
Set the errnum variable – we have an error.
If called more than once, seterr() doesn't change the error code away from the previous one. That way, we remember the original cause of our problems.
Subclasses may want to override seterr(int) to shut themselves down (eg. WvStream::close()) when an error condition is set.
Note that seterr(WvString) will call seterr(-1).
Reimplemented in WvStream.
Definition at line 144 of file wverror.cc.
Referenced by WvTCPListener::accept(), WvUnixListener::accept(), WvDSAKey::getpem(), WvGlob::set(), WvStream::seterr(), WvMagicCircle::WvMagicCircle(), WvPam::WvPam(), WvPam::WvPam(), WvShmZone::WvShmZone(), and WvTCPListener::WvTCPListener().
◆ seterr() [2/4]
◆ seterr() [3/4]
void WvErrorBase::seterr |
( |
WVSTRING_FORMAT_DECL |
| ) |
|
|
inlineinherited |
◆ seterr() [4/4]
◆ seterr_both() [1/2]
void WvErrorBase::seterr_both |
( |
int |
_errnum, |
|
|
WvStringParm |
specialerr |
|
) |
| |
|
inherited |
◆ seterr_both() [2/2]
void WvErrorBase::seterr_both |
( |
int |
_errnum, |
|
|
WVSTRING_FORMAT_DECL |
|
|
) |
| |
|
inlineinherited |
◆ noerr()
void WvErrorBase::noerr |
( |
| ) |
|
|
inlineinherited |
Reset our error state - there's no error condition anymore.
Definition at line 78 of file wverror.h.
◆ errnum
◆ errstring
The documentation for this class was generated from the following file: