Public Types | |
enum | Resource { UNKNOWN, FILE, DIRECTORY } |
Enumerates the set of resources in which a problem will throw a NIOException exception. More... | |
Public Member Functions | |
NIOException (const NString &desc, const NString &name, Module module, Resource resource, Flag flag) | |
Constructs a NIOException object. | |
Resource | getResource (void) const |
Gets the resource associated with the exception. | |
NString | getResourceName (void) const |
Gets the name of the resource associated with the exception. | |
Static Public Member Functions | |
static Flag | getFlagByErr (nuint32 errno_val) |
Given a errno value, this function will return a corresponding flag value (as defined by the enum Flag). | |
Static Public Attributes | |
static const Flag | IO_NOT_FOUND = 1 |
static const Flag | IO_ACCESS_DENIED = 2 |
static const Flag | IO_SYSTEM = 3 |
static const Flag | IO_NO_SPACE = 4 |
static const Flag | IO_IO_ERROR = 5 |
Definition at line 37 of file nioexception.h.
enum Resource |
Enumerates the set of resources in which a problem will throw a NIOException exception.
Definition at line 43 of file nioexception.h.
NIOException | ( | const NString & | desc, | |
const NString & | name, | |||
Module | module, | |||
Resource | resource, | |||
Flag | flag | |||
) |
Constructs a NIOException object.
desc | Exception description | |
name | The name of the resource | |
module | The module in which the exception occurred | |
resource | The resource that caused the exception | |
flag | A set of flags that may identify what occurred |
Definition at line 32 of file nioexception.cpp.
NIOException::Resource getResource | ( | void | ) | const |
Gets the resource associated with the exception.
Definition at line 42 of file nioexception.cpp.
NString getResourceName | ( | void | ) | const |
Gets the name of the resource associated with the exception.
Definition at line 47 of file nioexception.cpp.
Given a errno value, this function will return a corresponding flag value (as defined by the enum Flag).
errno_val | The value of the errno variable |
Definition at line 51 of file nioexception.cpp.
References IO_ACCESS_DENIED, IO_IO_ERROR, IO_NO_SPACE, IO_NOT_FOUND, and IO_SYSTEM.
Referenced by NFile::open().
DllDeclSpec const Flag IO_NOT_FOUND = 1 [static] |
DllDeclSpec const Flag IO_ACCESS_DENIED = 2 [static] |
Access to the resource was denied
Definition at line 51 of file nioexception.h.
Referenced by getFlagByErr().
DllDeclSpec const Flag IO_NO_SPACE = 4 [static] |
No space available on the device
Definition at line 53 of file nioexception.h.
Referenced by getFlagByErr().
DllDeclSpec const Flag IO_IO_ERROR = 5 [static] |