com.dalsemi.onewire.application.monitor
Class DeviceMonitorException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.dalsemi.onewire.application.monitor.DeviceMonitorException
- All Implemented Interfaces:
- Serializable
- public class DeviceMonitorException
- extends Exception
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.
- Version:
- 1.00
- Author:
- SH
- See Also:
- Serialized Form
getMonitor
public AbstractDeviceMonitor getMonitor()
- Returns the monitor which generated this event
- Returns:
- the monitor which generated this event
getAdapter
public DSPortAdapter getAdapter()
- Returns DSPortAdapter the monitor was using when the event was generated
- Returns:
- DSPortAdapter the monitor was using
getException
public 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.
throwException
public void throwException()
throws Exception
- Throws the wrapped exception to the calling object.
toString
public String toString()
- Converts this object to a String.
- Overrides:
toString
in class Throwable
- Returns:
- a string representation of this object
Copyright © 1999-2003 Dallas Semiconductor. All Rights Reserved.