com.healthy.security.server.exception.ModeratedException Maven / Gradle / Ivy
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 ModeratedException extends AccountStatusException {
private String code;
// ~ Constructors
// ===================================================================================================
/**
* Constructs a ModeratedException
with the specified message.
* @param code the code of the message
* @param msg the String to return if the fails
*/
public ModeratedException(String code, String msg) {
super(msg);
this.code = code;
}
/**
* Constructs a ModeratedException
with the specified message and root
* cause.
* @param msg the detail message.
* @param t root cause
*/
public ModeratedException(String msg, Throwable t) {
super(msg, t);
}
public String getCode() {
return code;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy