
com.qiniu.common.SuitsException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qsuits Show documentation
Show all versions of qsuits Show documentation
qiniu-suits is a efficient tools for qiniu api implemented by java8.
package com.qiniu.common;
import java.io.IOException;
public class SuitsException extends IOException {
private int statusCode;
public SuitsException(int statusCode, String error) {
super("code: " + statusCode + ", error: " + error);
this.statusCode = statusCode;
}
public SuitsException(Exception e, int statusCode) {
super(statusCode + ", " + e.getMessage(), e);
this.statusCode = statusCode;
}
public SuitsException(Exception e, int statusCode, String error) {
super(statusCode + ", " + error + ", " + e.getMessage(), e);
this.statusCode = statusCode;
}
public SuitsException(SuitsException e, String message) {
super(e.getMessage() + ", " + message, e);
this.statusCode = e.getStatusCode();
}
public int getStatusCode() {
return statusCode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy