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

net.n2oapp.framework.access.exception.AccessDeniedException Maven / Gradle / Ivy

There is a newer version: 7.28.1
Show newest version
package net.n2oapp.framework.access.exception;

import org.springframework.http.HttpStatus;

/**
 * Ошибка "Нет доступа"
 */
public class AccessDeniedException extends N2oSecurityException {

    public AccessDeniedException() {
        super("n2o.exceptions.forbidden", "Access is denied");
        setHttpStatus(HttpStatus.FORBIDDEN.value());
    }

    public AccessDeniedException(String message) {
        super("n2o.exceptions.forbidden", message);
        setHttpStatus(HttpStatus.FORBIDDEN.value());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy