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.
See Also:
  • Field Details

    • 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 Exception exception
      The exception that was generated by the search
  • Method Details

    • 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.
      Throws:
      Exception
    • toString

      public String toString()
      Converts this object to a String.
      Overrides:
      toString in class Throwable
      Returns:
      a string representation of this object