Class DeviceMonitorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.dalsemi.onewire.application.monitor.DeviceMonitorException
-
- All Implemented Interfaces:
java.io.Serializable
public class DeviceMonitorException extends java.lang.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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DSPortAdapter
adapter
The DSPortAdapter the monitor was using at the time of eventprotected AbstractDeviceMonitor
deviceMonitor
The monitor which generated the eventprotected java.lang.Exception
exception
The exception that was generated by the search
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DSPortAdapter
getAdapter()
Returns DSPortAdapter the monitor was using when the event was generatedjava.lang.Exception
getException()
Returns the wrapped exception that was generated during a 1-Wire search.AbstractDeviceMonitor
getMonitor()
Returns the monitor which generated this eventvoid
throwException()
Throws the wrapped exception to the calling object.java.lang.String
toString()
Converts this object to a String.
-
-
-
Field Detail
-
deviceMonitor
protected AbstractDeviceMonitor deviceMonitor
The monitor which generated the event
-
adapter
protected DSPortAdapter adapter
The DSPortAdapter the monitor was using at the time of event
-
exception
protected java.lang.Exception exception
The exception that was generated by the search
-
-
Method Detail
-
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 java.lang.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 java.lang.Exception
Throws the wrapped exception to the calling object.- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
Converts this object to a String.- Overrides:
toString
in classjava.lang.Throwable
- Returns:
- a string representation of this object
-
-