dev.sixpack.api.exception.SixpackServerException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
SDK to develop generators part of the Sixpack solution
The newest version!
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