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

net.coding.chenxiaobo.shiro.exception.CaptchaNotMatchException Maven / Gradle / Ivy

package net.coding.chenxiaobo.shiro.exception;

import org.apache.shiro.authc.AuthenticationException;

/**
 * 验证码不匹配异常,用在
 * {@link net.coding.chenxiaobo.shiro.filter.CaptchaAuthenticationFilter#executeLogin(javax.servlet.ServletRequest, javax.servlet.ServletResponse)}里
 *
 * @author maurice
 */
public class CaptchaNotMatchException extends AuthenticationException {

    /**
     * 验证码不匹配异常,在登录时,执行校验验证码不匹配后抛出
     */
    public CaptchaNotMatchException() {
        super();
    }

    /**
     * 验证码不匹配异常,在登录时,执行校验验证码不匹配后抛出
     *
     * @param message 异常信息
     */
    public CaptchaNotMatchException(String message) {
        super(message);
    }

    /**
     * 验证码不匹配异常,在登录时,执行校验验证码不匹配后抛出
     *
     * @param cause 异常类
     */
    public CaptchaNotMatchException(Throwable cause) {
        super(cause);
    }

    /**
     * 验证码不匹配异常,在登录时,执行校验验证码不匹配后抛出
     *
     * @param message 异常信息
     * @param cause   异常类
     */
    public CaptchaNotMatchException(String message, Throwable cause) {
        super(message, cause);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy