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

com.mizhousoft.security.exception.AuthenticationException Maven / Gradle / Ivy

package com.mizhousoft.security.exception;

import com.mizhousoft.commons.data.NestedException;

/**
 * 认证异常
 *
 * @version
 */
public abstract class AuthenticationException extends NestedException
{
	private static final long serialVersionUID = -4542318192107683780L;

	// 标识码
	private String code;

	/**
	 * 构造函数
	 *
	 * @param errorCode
	 * @param message
	 * @param throwable
	 */
	public AuthenticationException(String errorCode, String message, Throwable throwable)
	{
		super(errorCode, message, throwable);
	}

	/**
	 * 构造函数
	 *
	 * @param errorCode
	 * @param message
	 */
	public AuthenticationException(String errorCode, String message)
	{
		super(errorCode, message);
	}

	/**
	 * 构造函数
	 *
	 * @param errorCode
	 * @param codeParams
	 * @param message
	 * @param throwable
	 */
	public AuthenticationException(String errorCode, String[] codeParams, String message, Throwable throwable)
	{
		super(errorCode, codeParams, message, throwable);
	}

	/**
	 * 构造函数
	 * 
	 * @param errorCode
	 * @param codeParams
	 * @param message
	 */
	public AuthenticationException(String errorCode, String[] codeParams, String message)
	{
		super(errorCode, codeParams, message);
	}

	/**
	 * 构造函数
	 *
	 * @param errorCode
	 * @param throwable
	 */
	public AuthenticationException(String errorCode, Throwable throwable)
	{
		super(errorCode, throwable);
	}

	/**
	 * 构造函数
	 *
	 * @param errorCode
	 */
	public AuthenticationException(String errorCode)
	{
		super(errorCode);
	}

	/**
	 * 获取code
	 * 
	 * @return
	 */
	public String getCode()
	{
		return code;
	}

	/**
	 * 设置code
	 * 
	 * @param code
	 */
	public void setCode(String code)
	{
		this.code = code;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy