package egovframework.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * 접근 권한이 없는 경우 발생하는 예외
 */
@Getter
@ResponseStatus(HttpStatus.FORBIDDEN)
public class AccessDeniedException extends RuntimeException {
    
    private final String userAcnt;
    private final String requestURI;

    public AccessDeniedException(String userAcnt, String requestURI) {
        super("접근 권한이 없습니다.");
        this.userAcnt = userAcnt;
        this.requestURI = requestURI;
    }

}