#include <xvr2/Net/SocketExceptions.h>
This exception is thrown whenever a call to Socket::getsockopt or Socket::setsockopt fails due to a wrong or unavailable option specified, it could be possible that the host operating system does not support the given option at all.
Definition at line 76 of file SocketExceptions.h.
Public Member Functions | |
SocketOptionIsInvalid () | |
Default constructor. | |
SocketOptionIsInvalid (OSErrorCodeT x_errno, int __optname) | |
This constructor initializes the internal os_errval and optioname variable. | |
int | optionNameVal () |
String | optionName () |
OSErrorCodeT | osErrorCode () |
Returns the error code's value at the time the exception was thrown. | |
String | osErrorMessage () |
Returns an String describing a textual representation of the error condition thrown. | |
int | code () |
Deprecated method, please don't use. | |
virtual String | message () |
Deprecated method, please don't use. | |
std::string | toString () |
Displays the description of the exception. | |
const char * | backtrace () |
virtual const char * | getClassName () |
Returns the name of the current class. | |
Static Public Member Functions | |
static void | enable () |
static void | disable () |
static void | debugmsg (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__) |
Will print a debug message to the screen. | |
static void | debugmsgln (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__) |
Protected Member Functions | |
virtual void | dumpTrace () |
Protected Attributes | |
int | _optname |
std::string | description |
Stores the exception's description as a string. | |
std::string | __cls_name |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Object &s) |
xvr2::Net::SocketOptionIsInvalid::SocketOptionIsInvalid | ( | ) |
Default constructor.
xvr2::Net::SocketOptionIsInvalid::SocketOptionIsInvalid | ( | OSErrorCodeT | x_errno, | |
int | __optname | |||
) |
This constructor initializes the internal os_errval and optioname variable.
Since this constructor properly initilizes the os_errval and the affected optionname variable you are encouraged to always use it.
int xvr2::Net::SocketOptionParamFailure::optionNameVal | ( | ) | [inherited] |
String xvr2::Net::SocketOptionParamFailure::optionName | ( | ) | [inherited] |
OSErrorCodeT xvr2::SystemException::osErrorCode | ( | ) | [inherited] |
Returns the error code's value at the time the exception was thrown.
String xvr2::SystemException::osErrorMessage | ( | ) | [inherited] |
Returns an String describing a textual representation of the error condition thrown.
int xvr2::SystemException::code | ( | ) | [inherited] |
virtual String xvr2::SystemException::message | ( | ) | [virtual, inherited] |
std::string xvr2::Exception::toString | ( | ) | [virtual, inherited] |
virtual void xvr2::ExceptionTracer::dumpTrace | ( | ) | [protected, virtual, inherited] |
static void xvr2::ExceptionTracer::enable | ( | ) | [static, inherited] |
static void xvr2::ExceptionTracer::disable | ( | ) | [static, inherited] |
const char* xvr2::ExceptionTracer::backtrace | ( | ) | [inherited] |
virtual const char* xvr2::Object::getClassName | ( | ) | [virtual, inherited] |
Returns the name of the current class.
static void xvr2::Object::debugmsg | ( | Object * | obj, | |
const char * | msg, | |||
int | linenumber = __LINE__ , |
|||
const char * | srcfile = __FILE__ | |||
) | [static, inherited] |
Will print a debug message to the screen.
static void xvr2::Object::debugmsgln | ( | Object * | obj, | |
const char * | msg, | |||
int | linenumber = __LINE__ , |
|||
const char * | srcfile = __FILE__ | |||
) | [static, inherited] |
std::ostream& operator<< | ( | std::ostream & | stream, | |
const Object & | s | |||
) | [friend, inherited] |
int xvr2::Net::SocketOptionParamFailure::_optname [protected, inherited] |
Definition at line 55 of file SocketExceptions.h.
std::string xvr2::Exception::description [protected, inherited] |
std::string xvr2::Object::__cls_name [protected, inherited] |