All Known Implementing Classes:
CounterErrorHandler, CountErrorHandler, HistogramErrorHandler, IgnoreErrorHandler, MeterErrorHandler, ResultCode, RetryErrorHandler, StopErrorHandler, TimerErrorHandler, WarnErrorHandler

public interface ErrorHandler
  • Method Summary

    Modifier and Type Method Description
    ErrorDetail handleError​(java.lang.String name, java.lang.Throwable t, long cycle, long durationInNanos, ErrorDetail detail)
    An error handler is able to do side-effect processing for a particular error type, as well as modify the error detail that will be presented back to the caller.
  • Method Details

    • handleError

      ErrorDetail handleError​(java.lang.String name, java.lang.Throwable t, long cycle, long durationInNanos, ErrorDetail detail)
      An error handler is able to do side-effect processing for a particular error type, as well as modify the error detail that will be presented back to the caller.
      Parameters:
      t - Thrown from within the activity's action loop
      cycle - The cycle which was executing when it ran
      durationInNanos - How long into an operation the error occured
      Returns:
      true if the operation should be retried, assuming retries available