Input/Output exception. More...
#include <libppbase/base/IOException.h>
Public Types | |
enum | { errDir = 1, errFile, errMutex, errSig, errSock, errSockNoSuchHost, errSockNoSuchService, errSockAcceptTimeout, errSockConnectTimeout, errSockReadTimeout, errSockWriteTimeout, errSys, errThread, errDNS, errIConv, errDL, errMMap, errEnv, errPipe, errShMem } |
i/o error codes More... | |
Public Member Functions | |
IOException (int errcode, int errn, const char *fmt=NULL,...) | |
Constructor. | |
int | getErrno () const |
Gets the operating system error number. | |
virtual String | toString () const |
Gets a string representation of this exception. | |
Static Public Member Functions | |
static void | allowErrorPopups (bool allow=true) |
Allows or inhibits the appearance of popup windows for I/O errors like "Unable to load DLL", "Insert Floppy / CDROM", etc. on the Windows platform. |
Input/Output exception.
anonymous enum |
i/o error codes
base::IOException::IOException | ( | int | errcode, | |
int | errn, | |||
const char * | fmt = NULL , |
|||
... | ||||
) |
Constructor.
errcode | application-defined error code | |
errn | operating system error number (pass global errno here) | |
fmt | printf-like format string to take an additional error message | |
... | additional arguments for the format string |
static void base::IOException::allowErrorPopups | ( | bool | allow = true |
) | [static] |
Allows or inhibits the appearance of popup windows for I/O errors like "Unable to load DLL", "Insert Floppy / CDROM", etc. on the Windows platform.
The default behavior on Windows is to show a popup window on such errors. This is highly unwanted for console and background applications.
allow | true to allow popup windows, false to inhibit them |
int base::IOException::getErrno | ( | ) | const |
Gets the operating system error number.
virtual String base::IOException::toString | ( | ) | const [virtual] |
Gets a string representation of this exception.
Reimplemented from base::Exception.