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

club.zhcs.lina.auth.AuthorizationException Maven / Gradle / Ivy

The newest version!
package club.zhcs.lina.auth;

/**
 * 鉴权异常
 * 
 * @author Kerbores([email protected])
 *
 */
public class AuthorizationException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    final String status;

    /**
     * 
     */
    public AuthorizationException() {
        super();
        this.status = "DEFAULT";
    }

    /**
     * 
     * @param message
     *            异常消息
     */
    public AuthorizationException(String message) {
        super(message);
        this.status = "DEFAULT";
    }

    /**
     * 
     * @param message
     *            异常消息
     * @param status
     *            状态
     */
    public AuthorizationException(String message, String status) {
        super(message);
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy