Class 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 event
      protected AbstractDeviceMonitor deviceMonitor
      The monitor which generated the event
      protected 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 generated
      java.lang.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.
      java.lang.String 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • 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 class java.lang.Throwable
        Returns:
        a string representation of this object