com.healthy.security.server.exception.ServerErrorException Maven / Gradle / Ivy
package com.healthy.security.server.exception;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.healthy.security.server.HealthyAuth2ExceptionSerializer;
import org.springframework.http.HttpStatus;
/**
* ServerErrorException
*
* @author xiaomingzhang
*/
@JsonSerialize(using = HealthyAuth2ExceptionSerializer.class)
public class ServerErrorException extends HealthyAuth2Exception {
public ServerErrorException(String msg, Throwable t) {
super(msg);
}
@Override
public String getOAuth2ErrorCode() {
return "server_error";
}
@Override
public int getHttpErrorCode() {
return HttpStatus.INTERNAL_SERVER_ERROR.value();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy