All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.contek.zeus.server.errors.ExchangeMaxRetryAttemptsException Maven / Gradle / Ivy

There is a newer version: 2.29.0
Show newest version
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