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

tech.becoming.common.exceptions.UnauthorizedException Maven / Gradle / Ivy

Go to download

Yet another library that contains the regular comonly used things like http status codes, exceptions, enums. No dependencies in the final code.

There is a newer version: 1.1.1
Show newest version
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