HostNotFoundException Class Reference

An exception indicating a hostname resolution failure or malformed IP address string. More...

#include <InetAddress.h++>

Inheritance diagram for HostNotFoundException:

Inheritance graph
[legend]
Collaboration diagram for HostNotFoundException:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 HostNotFoundException (String message=String::empty)
 Construct a new HostNotFoundException with an optional cause message.
virtual void write (std::ostream &stream) const
 Write a textual representation of the exception to a stream.
String getMessage () const throw ()
 Get the message associated with the exception.
const char * what () const throw ()
 Get the message associated with the exception.
String toString () const
 Get a textual representation of the exception as a String.

Protected Member Functions

void _write (std::ostream &stream, const char *name) const

Protected Attributes

String _message
 The cause message.


Detailed Description

An exception indicating a hostname resolution failure or malformed IP address string.

Author:
Mark Lindner

Constructor & Destructor Documentation

Construct a new HostNotFoundException with an optional cause message.


Member Function Documentation

void _write ( std::ostream &  stream,
const char *  name 
) const [protected, inherited]

String getMessage (  )  const throw () [inline, inherited]

Get the message associated with the exception.

String toString (  )  const [inline, inherited]

Get a textual representation of the exception as a String.

const char* what (  )  const throw () [inline, inherited]

Get the message associated with the exception.

virtual void write ( std::ostream &  stream  )  const [inline, virtual]

Write a textual representation of the exception to a stream.

Reimplemented from IOException.


Member Data Documentation

String _message [protected, inherited]

The cause message.


The documentation for this class was generated from the following files:

Generated on Sat Apr 17 23:03:08 2010 for libcommonc++ by  doxygen 1.5.9