University of Sheffield   

    The Simons
    Component Library

Introduction   Class Hierarchy   Class Listing   Index of Classes   Index of Methods   Header Files  

NotFound Class Reference

#include <NotFound.h>

Inheritance diagram for NotFound:

DeviceError Exception Object List of all members.

Detailed Description

NotFound: signals a failed attempt to connect to a device.

Raise a NotFound exception when an attempt is made to open a connection to a device, but the device cannot be found. For example, if an attempt is made to open a Stream, but the associated file cannot be found (perhaps because the pathname was incorrect), this will raise a NotFound exception naming the underlying filesystem, to which a connection could not be made. NotFound provides access to the failed object(), the message() and the name() of the failed object.


Public Member Functions

 NotFound ()
 Construct a default NotFound.

virtual ~NotFound ()
 Release a NotFound.

 NotFound (ObjectID, StringID)
 Construct a NotFound exception.

virtual ObjectID clone () const
 Clone a shallow copy of this NotFound.


Protected Member Functions

 NotFound (const NotFound &)
 Copy another NotFound.


Constructor & Destructor Documentation

NotFound::NotFound const NotFound &  exception  )  [protected]
 

Copy another NotFound.

Required by C++ to ensure that copying an NotFound faithfully copies a DeviceError.

Parameters:
exception - the NotFound to copy.
Returns:
a NotFound, a shallow copy.

NotFound::NotFound  ) 
 

Construct a default NotFound.

Returns:
a NotFound

NotFound::~NotFound  )  [virtual]
 

Release a NotFound.

NotFound::NotFound ObjectID  object,
StringID  name
 

Construct a NotFound exception.

Raised when an attempt is made to connect to a device, such as a filesystem, but this is not found, usually because the path name to the device was incorrect.

Parameters:
object - the object which could not connect.
name - the name of the missing device connection.
Returns:
a NotFound exception.


Member Function Documentation

ObjectID NotFound::clone  )  const [virtual]
 

Clone a shallow copy of this NotFound.

Returns:
a NotFound exception, a shallow copy.

Reimplemented from Exception.


The documentation for this class was generated from the following files:
Generated on Fri May 5 17:17:18 2006 for The Simons Component Library by doxygen1.3