Class RetryingErrorHandler
- java.lang.Object
-
- io.fluxcapacitor.javaclient.tracking.RetryingErrorHandler
-
- All Implemented Interfaces:
ErrorHandler
public class RetryingErrorHandler extends Object implements ErrorHandler
-
-
Constructor Summary
Constructors Constructor Description RetryingErrorHandler(Predicate<Exception> errorFilter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RetryingErrorHandlerforAnyError()voidhandleError(Exception error, String errorMessage, Runnable retryFunction)protected booleanisTechnicalError(Exception error)protected voidlogError(String errorMessage, Exception error)protected voidlogMessage(String errorMessage, boolean severe)
-
-
-
Method Detail
-
forAnyError
public static RetryingErrorHandler forAnyError()
-
handleError
public void handleError(Exception error, String errorMessage, Runnable retryFunction) throws Exception
- Specified by:
handleErrorin interfaceErrorHandler- Throws:
Exception
-
logMessage
protected void logMessage(String errorMessage, boolean severe)
-
isTechnicalError
protected boolean isTechnicalError(Exception error)
-
-