#include <NetworkEx.h>
Public Types | |
enum | ExceptionCode { invalid_address = 0, invalid_host, invalid_network, invalid_service, read_failed, write_failed, socket_path_exceeded, eof_encountered, system_call_failure, system_call_timout } |
Public Member Functions | |
NetworkException (ExceptionCode code, const char *note, long native=0) | |
ExceptionCode | getErrorCode () const throw () |
long | getNativeErrorCode () const throw () |
virtual const char * | what () const throw () |
Static Public Member Functions | |
static void | throwNetworkException (ExceptionCode code, const char *message="") |
static void | throwNetworkException (ExceptionCode code, long nativeError) |
static const char * | getErrorSymbol (long code) |
static const char * | getErrorDescription (long code) |
Private Attributes | |
ExceptionCode | exceptionCode |
long | nativeCode |
Copyright (c) 2000 Jasen Plietz All rights reserved.
No warranties are extended. Use at your own risk.
To contact the author with suggestions or comments, use Jasen@plietz.net
Definition at line 29 of file NetworkEx.h.
|
Definition at line 32 of file NetworkEx.h. |
|
Definition at line 48 of file NetworkEx.cpp. Referenced by throwNetworkException(). |
|
Definition at line 54 of file NetworkEx.cpp. References exceptionCode. Referenced by what(). |
|
Definition at line 95 of file NetworkEx.cpp. References NetworkExceptions. Referenced by what(). |
|
To Do: Make these private members and use the facet message catalog of C++ as soon as you can figure out how to use it Definition at line 87 of file NetworkEx.cpp. References NetworkExceptions. Referenced by throwNetworkException(). |
|
Definition at line 61 of file NetworkEx.cpp. References nativeCode. |
|
Definition at line 80 of file NetworkEx.cpp. References getErrorSymbol(), and NetworkException(). |
|
Definition at line 72 of file NetworkEx.cpp. References NetworkException(). Referenced by ConnectableSocket::read(), IpAddress::set(), Host::set(), and ConnectableSocket::write(). |
|
Definition at line 66 of file NetworkEx.cpp. References getErrorCode(), and getErrorDescription(). Referenced by processSocket(). |
|
Definition at line 92 of file NetworkEx.h. Referenced by getErrorCode(). |
|
Definition at line 93 of file NetworkEx.h. Referenced by getNativeErrorCode(). |