Class DeviceMonitorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.dalsemi.onewire.application.monitor.DeviceMonitorException
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Modifier and TypeFieldDescriptionprotected DSPortAdapter
The DSPortAdapter the monitor was using at the time of eventprotected AbstractDeviceMonitor
The monitor which generated the eventprotected Exception
The exception that was generated by the search -
Method Summary
Modifier and TypeMethodDescriptionReturns DSPortAdapter the monitor was using when the event was generatedReturns the wrapped exception that was generated during a 1-Wire search.Returns the monitor which generated this eventvoid
Throws the wrapped exception to the calling object.toString()
Converts this object to a String.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
deviceMonitor
The monitor which generated the event -
adapter
The DSPortAdapter the monitor was using at the time of event -
exception
The exception that was generated by the search
-
-
Method Details
-
getMonitor
Returns the monitor which generated this event- Returns:
- the monitor which generated this event
-
getAdapter
Returns DSPortAdapter the monitor was using when the event was generated- Returns:
- DSPortAdapter the monitor was using
-
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
Throws the wrapped exception to the calling object.- Throws:
Exception
-
toString
Converts this object to a String.
-