blob: 76438b4b0afab78de1b618fc867e33c6fe1d593e [file] [log] [blame]
Michael Hanlca740d72015-06-16 10:04:58 +02001package de.ids_mannheim.korap.exceptions;
2
3import lombok.Data;
4
5/**
6 * @author hanl
7 * @date 11/12/2013
8 */
9// a security table registers all these exceptions (failed authentication, failed access to a resource, etc.)
10@Data
11@Deprecated
Michael Hanl482f30d2015-09-25 12:39:46 +020012public class NotAuthorizedException extends KustvaktException {
Michael Hanlca740d72015-06-16 10:04:58 +020013
Michael Hanl8abaf9e2016-05-23 16:46:35 +020014 public NotAuthorizedException (int status) {
Michael Hanlca740d72015-06-16 10:04:58 +020015 super(status);
16 }
17
Michael Hanl8abaf9e2016-05-23 16:46:35 +020018
19 public NotAuthorizedException (int status, String entity) {
Michael Hanlca740d72015-06-16 10:04:58 +020020 super(status, "", entity);
21 }
22
Michael Hanl8abaf9e2016-05-23 16:46:35 +020023
24 public NotAuthorizedException (int status, String message, String entity) {
Michael Hanlca740d72015-06-16 10:04:58 +020025 super(status, message, entity);
26 }
27
Michael Hanl8abaf9e2016-05-23 16:46:35 +020028
29 public NotAuthorizedException (Throwable cause, int status) {
Michael Hanlca740d72015-06-16 10:04:58 +020030 super(cause, status);
31 }
32
Michael Hanl8abaf9e2016-05-23 16:46:35 +020033
34 public NotAuthorizedException (String message, Throwable cause, int status) {
Michael Hanlca740d72015-06-16 10:04:58 +020035 super(message, cause, status);
36 }
37}