University of Sheffield   

    The Simons
    Component Library

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

NoResponse Class Reference

#include <NoResponse.h>

Inheritance diagram for NoResponse:

DeviceError Exception Object List of all members.

Detailed Description

NoResponse: signals that a device is no longer responding.

Raise a NoResponse exception when an attempt is made to interact with a device, which fails to respond. The failure could be because the connection has broken, or because the device itself has failed (ie entered some unusable state). For example, while reading from an open Stream, if the connection to the underlying filesystem is lost, or a bad read operation leaves the filesystem in an unusable state, this will raise a NoResponse exception on the next attempt to read. NoResponse provides access to the failed object(), the message() and the name() of the failed object.


Public Member Functions

 NoResponse ()
 Construct a default NoResponse.

virtual ~NoResponse ()
 Release a NoResponse.

 NoResponse (ObjectID, StringID)
 Construct a NoResponse exception.

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


Protected Member Functions

 NoResponse (const NoResponse &)
 Copy another NoResponse.


Constructor & Destructor Documentation

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

Copy another NoResponse.

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

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

NoResponse::NoResponse  ) 
 

Construct a default NoResponse.

Returns:
a NoResponse

NoResponse::~NoResponse  )  [virtual]
 

Release a NoResponse.

NoResponse::NoResponse ObjectID  object,
StringID  name
 

Construct a NoResponse exception.

Raised when an attempt is made to use a device, such as a filesystem, but the device does not respond. This is usually because the connection is broken. If this NoResponse exception is handled, the failed object should close down its connection to the device and attempt to reopen the connection and start again.

Parameters:
object - the object which could not raise a response.
name - the name of the broken connection to the device.
Returns:
a NoResponse exception.


Member Function Documentation

ObjectID NoResponse::clone  )  const [virtual]
 

Clone a shallow copy of this NoResponse.

Returns:
a NoResponse 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