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

com.healthy.security.server.exception.AuditFailureException Maven / Gradle / Ivy

There is a newer version: 1.3.7
Show newest version
package com.healthy.security.server.exception;

import org.springframework.security.authentication.AccountStatusException;

/**
 * If the authentication request is rejected because the account is waiting for
 * review,this exception is thrown.No Assertions about whether the credentials are valid.
 *
 * @author xiaomingzhang
 */
public class AuditFailureException extends AccountStatusException {

	private final String code;

	// ~ Constructors
	// ===================================================================================================

	/**
	 * Constructs a AuditFailureException with the specified message.
	 * @param code the code of the message
	 * @param msg the detail message
	 */
	public AuditFailureException(String code, String msg) {
		super(msg);
		this.code = code;
	}

	/**
	 * Constructs a AuditFailureException with the specified message and root
	 * cause.
	 * @param code the code of the message
	 * @param msg the String to return if the fails
	 * @param t root cause
	 */
	public AuditFailureException(String code, String msg, Throwable t) {
		super(msg, t);
		this.code = code;
	}

	public String getCode() {
		return code;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy