Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Net::UnknownHostError Class Reference

#include <UnknownHostError.h>

Inheritance diagram for Net::UnknownHostError:

Inheritance graph
[legend]
Collaboration diagram for Net::UnknownHostError:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UnknownHostError (String *name, const char *selector=NULL)
virtual StringclassName ()
 Answer receiver class name.
virtual StringnotifierString ()

Protected Member Functions

virtual void privRaise (void)
 This method really throws the receiver as an exception.

Constructor & Destructor Documentation

Net::UnknownHostError::UnknownHostError String name,
const char *  selector = NULL
[inline]
 

Definition at line 35 of file UnknownHostError.h.

References Core::GenericException::messageText.

00036       : NetworkError(nil, selector, name)
00037     {
00038         messageText = &dynamic_cast<String &>((*new String("Unknown host ")) + *name);
00039     }


Member Function Documentation

virtual String* Net::UnknownHostError::className  )  [inline, virtual]
 

Answer receiver class name.

Because there isn't any standard way to obtain class name this method comes to place.

Every class should rewrite this method but many didn't (yet).

Reimplemented from Net::NetworkError.

Definition at line 41 of file UnknownHostError.h.

00042     {
00043         return new String("UnknownHostError");
00044     }

virtual String* Net::UnknownHostError::notifierString void   )  [inline, virtual]
 

Reimplemented from Net::NetworkError.

Definition at line 46 of file UnknownHostError.h.

00047     {
00048         return new String("DNS lookup failed or unknown host.");
00049     }

virtual void Net::UnknownHostError::privRaise void   )  [inline, protected, virtual]
 

This method really throws the receiver as an exception.

Every subclass MUST reimplement this method, even if it's parent does. This is because of poor object type handling in C++. :-(

Reimplemented from Net::NetworkError.

Definition at line 53 of file UnknownHostError.h.

00054     { throw this; }


The documentation for this class was generated from the following file:
Generated on Mon Nov 27 09:52:17 2006 for Smalltalk like C++ Class Library by  doxygen 1.4.2