Package com.tailf.dp

Interface DpExceptionReporter


public interface DpExceptionReporter
Interface for the user of the Dp deamon to handle catched exceptions in the implicit threads started in the Dp.read() method
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Method called when exceptions are catched in the internal threads started in the Dp.read() method.
  • Method Details

    • reportException

      boolean reportException(Throwable e)
      Method called when exceptions are catched in the internal threads started in the Dp.read() method. If this callback is registered the Dp will delegate the handling of the exception to this method and the returning boolean defines if the Dp thread should throw a RuntimeException with the catched exception as cause
      Parameters:
      e - the catched exception
      Returns:
      boolean if true the Dp thread will throw a new RuntimeException with exception e as cause