java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--com.dalsemi.onewire.application.monitor.DeviceMonitorException
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.
Method Summary | |
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. |
AbstractDeviceMonitor |
getMonitor()
Returns the monitor which generated this event |
void |
throwException()
Throws the wrapped exception to the calling object. |
String |
toString()
Converts this object to a String. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public AbstractDeviceMonitor getMonitor()
public DSPortAdapter getAdapter()
public Exception getException()
public void throwException() throws Exception
public String toString()
toString
in class Throwable