1-Wire API for .NET Version 4.00
Public Member Functions | Protected Attributes | Package Functions

DeviceMonitorException Class Reference

Represents an encapsulated exception from a particular Device Monitor. More...

Inherits java::lang::Exception.

List of all members.

Public Member Functions

AbstractDeviceMonitor getMonitor ()
 Returns the monitor which generated this event.
DSPortAdapter getAdapter ()
 Returns DSPortAdapter the monitor was using when the event was generated.
Exception getException ()
 Returns the wrapped exception that was generated during a 1-Wire search.
void throwException () throws Exception
 Throws the wrapped exception to the calling object.
String toString ()
 Converts this object to a String.

Protected Attributes

AbstractDeviceMonitor deviceMonitor = null
 The monitor which generated the event.
DSPortAdapter adapter = null
 The DSPortAdapter the monitor was using at the time of event.
Exception exception
 The exception that was generated by the search.

Package Functions

 DeviceMonitorException (AbstractDeviceMonitor deviceMonitor, DSPortAdapter adapter, Exception exception)
 Creates a new DeviceMonitor event with the specified characteristics.

Detailed Description

Represents an encapsulated exception from a particular Device Monitor.

The state of this exception includes the device monitor object from which the exception was thrown, the DSPortAdapter object that was being used by the monitor, and the exact exception that was thrown.

Author:
SH
Version:
1.00

Constructor & Destructor Documentation

DeviceMonitorException ( AbstractDeviceMonitor  deviceMonitor,
DSPortAdapter  adapter,
Exception  exception 
) [package]

Creates a new DeviceMonitor event with the specified characteristics.

Parameters:
sourceThe monitor which generated the exception
adapterThe DSPortAdapter the monitor was using
exceptionThe actual exception which was thrown

Member Function Documentation

DSPortAdapter getAdapter ( )

Returns DSPortAdapter the monitor was using when the event was generated.

Returns:
DSPortAdapter the monitor was using
Exception getException ( )

Returns the wrapped exception that was generated during a 1-Wire search.

Returns:
the wrapped exception that was generated during a 1-Wire search.
AbstractDeviceMonitor getMonitor ( )

Returns the monitor which generated this event.

Returns:
the monitor which generated this event
String toString ( )

Converts this object to a String.

Returns:
a string representation of this object

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