org.onetwo.common.exception.AuthenticationException Maven / Gradle / Ivy
package org.onetwo.common.exception;
@SuppressWarnings("serial")
public class AuthenticationException extends ServiceException {
public static final String DEFAULT_MESSAGE = "authentication error ";
protected static final String DEFAULT_CODE = AuthenticErrorCode.BASE_CODE;
public AuthenticationException() {
super(DEFAULT_MESSAGE);
}
public AuthenticationException(String message) {
super(message);
}
public AuthenticationException(String message, String code) {
super(message, code);
}
public AuthenticationException(Throwable cause) {
super(cause);
}
public AuthenticationException(String message, Throwable cause) {
super(message, cause);
}
protected String getDefaultCode(){
return DEFAULT_CODE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy