All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.feingto.cloud.exception.ClientException Maven / Gradle / Ivy

There is a newer version: 2.3.5.RELEASE
Show newest version
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