dev.sixpack.api.exception.SixpackServerException Maven / Gradle / Ivy
package dev.sixpack.api.exception;
import static dev.sixpack.utils.FormatUtils.mFormat;
public class SixpackServerException extends SixpackException {
public SixpackServerException(String message) {
super(mFormat("Server returned an error: {}", message));
}
public SixpackServerException(String message, Throwable cause) {
super(mFormat("Server returned an error: {}", message), cause);
}
public SixpackServerException(String message, String httpCode) {
super(mFormat("Server returned an error with code {}: {}", httpCode, message));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy