io.fluxcapacitor.javaclient.tracking.ThrowingErrorHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Default Java client library for interfacing with Flux Capacitor.
package io.fluxcapacitor.javaclient.tracking;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public enum ThrowingErrorHandler implements ErrorHandler {
INSTANCE;
@Override
public void handleError(Exception error, String errorMessage, Runnable retryFunction) throws Exception {
log.error("{}. Propagating error", errorMessage, error);
throw error;
}
}