activemq-cpp-3.4.0
|
Exception for errors when manipulating sockets. More...
#include <src/main/decaf/net/SocketException.h>
Public Member Functions | |
SocketException () throw () | |
SocketException (const lang::Exception &ex) throw () | |
SocketException (const SocketException &ex) throw () | |
SocketException (const char *file, const int lineNumber, const std::exception *cause, const char *msg,...) throw () | |
Constructor - Initializes the file name and line number where this message occurred. | |
SocketException (const std::exception *cause) throw () | |
Constructor. | |
SocketException (const char *file, const int lineNumber, const char *msg,...) throw () | |
Constructor - Initializes the file name and line number where this message occurred. | |
virtual SocketException * | clone () const |
Clones this exception. | |
virtual | ~SocketException () throw () |
Exception for errors when manipulating sockets.
decaf::net::SocketException::SocketException | ( | ) | throw () [inline] |
decaf::net::SocketException::SocketException | ( | const lang::Exception & | ex | ) | throw () [inline] |
decaf::net::SocketException::SocketException | ( | const SocketException & | ex | ) | throw () [inline] |
decaf::net::SocketException::SocketException | ( | const char * | file, |
const int | lineNumber, | ||
const std::exception * | cause, | ||
const char * | msg, | ||
... | |||
) | throw () [inline] |
Constructor - Initializes the file name and line number where this message occurred.
Sets the message to report, using an optional list of arguments to parse into the message
file | The file name where exception occurs |
lineNumber | The line number where the exception occurred. |
cause | The exception that was the cause for this one to be thrown. |
msg | The message to report |
... | list of primitives that are formatted into the message |
decaf::net::SocketException::SocketException | ( | const std::exception * | cause | ) | throw () [inline] |
Constructor.
cause | Pointer to the exception that caused this one to be thrown, the object is cloned caller retains ownership. |
decaf::net::SocketException::SocketException | ( | const char * | file, |
const int | lineNumber, | ||
const char * | msg, | ||
... | |||
) | throw () [inline] |
Constructor - Initializes the file name and line number where this message occurred.
Sets the message to report, using an optional list of arguments to parse into the message
file | The file name where exception occurs |
lineNumber | The line number where the exception occurred. |
msg | The message to report |
... | list of primitives that are formatted into the message |
virtual decaf::net::SocketException::~SocketException | ( | ) | throw () [inline, virtual] |
virtual SocketException* decaf::net::SocketException::clone | ( | ) | const [inline, virtual] |
Clones this exception.
This is useful for cases where you need to preserve the type of the original exception as well as the message. All subclasses should override.
Reimplemented from decaf::io::IOException.
Reimplemented in decaf::internal::net::ssl::openssl::OpenSSLSocketException, decaf::net::BindException, decaf::net::ConnectException, decaf::net::NoRouteToHostException, and decaf::net::PortUnreachableException.