tech.becoming.common.exceptions.UnauthorizedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common Show documentation
Show all versions of common Show documentation
Yet another library that contains the regular comonly used things like http status codes, exceptions, enums. No dependencies in the final code.
package tech.becoming.common.exceptions;
import java.util.List;
import static tech.becoming.common.constants.HttpStatusCode.UNAUTHORIZED_401;
import static tech.becoming.common.constants.HttpStatusName.UNAUTHORIZED;
public class UnauthorizedException extends AbstractRuntimeException {
public UnauthorizedException() {
super(UNAUTHORIZED);
}
public UnauthorizedException(List details) {
super(UNAUTHORIZED, details);
}
public UnauthorizedException(ExceptionDetail detail) {
super(UNAUTHORIZED, detail);
}
@Override
public int getHttpCode() {
return UNAUTHORIZED_401;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy