Interface ValueFaultHandler


public interface ValueFaultHandler
Interface in order to deal with value exceptions
Since:
15.03.11
Author:
roland
  • Field Details

    • IGNORING_VALUE_FAULT_HANDLER

      static final ValueFaultHandler IGNORING_VALUE_FAULT_HANDLER
      Fault handler which returns a simple string representation of the exception
    • THROWING_VALUE_FAULT_HANDLER

      static final ValueFaultHandler THROWING_VALUE_FAULT_HANDLER
      Fault handler for simply rethrowing a given exception.
  • Method Details

    • handleException

      <T extends Throwable> Object handleException(T exception) throws T
      Handle the given exception and return an object which can be used as a replacement for the real value
      Parameters:
      exception - exception to handle
      Returns:
      replacement value or the exception is rethrown if this handler doesnt handle this exception
      Throws:
      T - if the handler does not handle the exception