#include <CTCPNoSuchHost.h>
Public Member Functions | |
CTCPNoSuchHost (const STD(string)&hostname, const STD(string)&Doing) | |
CTCPNoSuchHost (const CTCPNoSuchHost &rhs) | |
Copy constructor. | |
virtual | ~CTCPNoSuchHost () |
Destructor. | |
CTCPNoSuchHost & | operator= (const CTCPNoSuchHost &rhs) |
int | operator== (const CTCPNoSuchHost &rhs) |
int | gethErrno () const |
< Return h_errno at time of instantiation | |
STD (string) getHost() const | |
< Return name of failing host | |
virtual const char * | ReasonText () const |
virtual Int_t | ReasonCode () const |
Protected Member Functions | |
void | sethErrno (int newVal) |
void | setHost (const STD(string) newVal) |
Private Member Functions | |
STD (string) m_Host | |
Host which doesn't exist. | |
STD (string) m_Reason | |
STD(String) for building up reason text. | |
Private Attributes | |
int | m_hErrno |
Cached value of errno when instantiated. |
The exception produces reason STD(string)s which describe why the host could not be opened along with contextual information supplied by the application when the object is instantiated.
Definition at line 317 of file CTCPNoSuchHost.h.
|
|
|
Copy constructor. Copy constructor. Used to build temporaries for e.g. call by value or return by value functional semantics.
Definition at line 327 of file CTCPNoSuchHost.cpp. |
|
Destructor.
Definition at line 330 of file CTCPNoSuchHost.h. |
|
< Return h_errno at time of instantiation
Definition at line 338 of file CTCPNoSuchHost.h. |
|
Assignment operator
Definition at line 339 of file CTCPNoSuchHost.cpp. |
|
Comparison operator.
Definition at line 353 of file CTCPNoSuchHost.cpp. References m_hErrno. |
|
Returns the exception specific reason code. In this case, m_hErrno. Definition at line 385 of file CTCPNoSuchHost.cpp. |
|
Returns a textual string indicating why the exception was thrown. This string is suitable for diaplay to a user. The string is of the form: "Host Lookup failed for [m_Host] due to: [hstrerror(m_hErrno)] while [WasDoing()]" Definition at line 370 of file CTCPNoSuchHost.cpp. References m_hErrno. |
|
Definition at line 346 of file CTCPNoSuchHost.h. References m_hErrno. |
|
Definition at line 348 of file CTCPNoSuchHost.h. |
|
< Return name of failing host
Definition at line 340 of file CTCPNoSuchHost.h. |
|
STD(String) for building up reason text.
|
|
Host which doesn't exist.
|
|
Cached value of errno when instantiated.
Definition at line 321 of file CTCPNoSuchHost.h. Referenced by operator==(), ReasonText(), and sethErrno(). |