com.feingto.cloud.exception.ClientException Maven / Gradle / Ivy
package com.feingto.cloud.exception;
import javax.servlet.http.HttpServletResponse;
/**
* Client exception
*
* @author longfei
*/
public class ClientException extends RuntimeException {
private static final long serialVersionUID = 1963157379197782812L;
private int status = HttpServletResponse.SC_BAD_REQUEST;
public int status() {
return this.status;
}
public ClientException() {
super();
}
public ClientException(String message) {
super(message);
}
public ClientException(int status, String message) {
super(message);
this.status = status;
}
public ClientException(Throwable cause) {
super(cause);
}
public ClientException(String message, Throwable cause) {
super(message, cause);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy