io.contek.zeus.server.errors.ExchangeUnknownClientErrorException 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 ExchangeUnknownClientErrorException extends ExchangeFatalErrorException {
private final Integer httpCode;
public ExchangeUnknownClientErrorException() {
this(null);
}
public ExchangeUnknownClientErrorException(@Nullable String message) {
this(null, message);
}
public ExchangeUnknownClientErrorException(@Nullable Integer httpCode, @Nullable String message) {
this(httpCode, message, null);
}
public ExchangeUnknownClientErrorException(
@Nullable Integer httpCode, @Nullable String message, @Nullable Throwable cause) {
super(format("HTTP(%d): %s", httpCode, message), cause);
this.httpCode = httpCode;
}
@Nullable
public Integer getHttpCode() {
return httpCode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy