| Michael Hanl | ca740d7 | 2015-06-16 10:04:58 +0200 | [diff] [blame] | 1 | package de.ids_mannheim.korap.exceptions; |
| 2 | |
| 3 | import 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 Hanl | 482f30d | 2015-09-25 12:39:46 +0200 | [diff] [blame] | 12 | public class NotAuthorizedException extends KustvaktException { |
| Michael Hanl | ca740d7 | 2015-06-16 10:04:58 +0200 | [diff] [blame] | 13 | |
| Michael Hanl | 8abaf9e | 2016-05-23 16:46:35 +0200 | [diff] [blame] | 14 | public NotAuthorizedException (int status) { |
| Michael Hanl | ca740d7 | 2015-06-16 10:04:58 +0200 | [diff] [blame] | 15 | super(status); |
| 16 | } |
| 17 | |
| Michael Hanl | 8abaf9e | 2016-05-23 16:46:35 +0200 | [diff] [blame] | 18 | |
| 19 | public NotAuthorizedException (int status, String entity) { |
| Michael Hanl | ca740d7 | 2015-06-16 10:04:58 +0200 | [diff] [blame] | 20 | super(status, "", entity); |
| 21 | } |
| 22 | |
| Michael Hanl | 8abaf9e | 2016-05-23 16:46:35 +0200 | [diff] [blame] | 23 | |
| 24 | public NotAuthorizedException (int status, String message, String entity) { |
| Michael Hanl | ca740d7 | 2015-06-16 10:04:58 +0200 | [diff] [blame] | 25 | super(status, message, entity); |
| 26 | } |
| 27 | |
| Michael Hanl | 8abaf9e | 2016-05-23 16:46:35 +0200 | [diff] [blame] | 28 | |
| 29 | public NotAuthorizedException (Throwable cause, int status) { |
| Michael Hanl | ca740d7 | 2015-06-16 10:04:58 +0200 | [diff] [blame] | 30 | super(cause, status); |
| 31 | } |
| 32 | |
| Michael Hanl | 8abaf9e | 2016-05-23 16:46:35 +0200 | [diff] [blame] | 33 | |
| 34 | public NotAuthorizedException (String message, Throwable cause, int status) { |
| Michael Hanl | ca740d7 | 2015-06-16 10:04:58 +0200 | [diff] [blame] | 35 | super(message, cause, status); |
| 36 | } |
| 37 | } |