io.contek.zeus.server.errors.ExchangeMaxRetryAttemptsException Maven / Gradle / Ivy
package io.contek.zeus.server.errors;
import javax.annotation.Nullable;
import javax.annotation.concurrent.NotThreadSafe;
import static java.lang.String.format;
@NotThreadSafe
public final class ExchangeMaxRetryAttemptsException extends ExchangeFatalErrorException {
private final int attempts;
public ExchangeMaxRetryAttemptsException(int attempts, @Nullable Throwable cause) {
super(format("Maximum retry attempts reached (%d).", attempts), cause);
this.attempts = attempts;
}
public int getAttempts() {
return attempts;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy