Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
AuthorizationServiceException |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) 2009, Swiss Federal Department of Defence Civil Protection and Sport | |
3 | * (http://www.vbs.admin.ch) | |
4 | * Copyright (c) 2009, Ergon Informatik AG (http://www.ergon.ch) | |
5 | * All rights reserved. | |
6 | * | |
7 | * Licensed under the Open Permis License which accompanies this distribution, | |
8 | * and is available at http://www.openpermis.org/BSDlicenceKent.txt | |
9 | */ | |
10 | package org.openpermis; | |
11 | ||
12 | ||
13 | /** | |
14 | * An exception that gets thrown when authorization cannot be performed. | |
15 | * @since 0.3.0 | |
16 | */ | |
17 | public class AuthorizationServiceException extends Exception { | |
18 | ||
19 | //---- Static | |
20 | ||
21 | /** | |
22 | * @since 0.3.0 | |
23 | */ | |
24 | private static final long serialVersionUID = -1274498714250237719L; | |
25 | ||
26 | //---- Constructors | |
27 | ||
28 | /** | |
29 | * Creates an unspecified authorization service exception. | |
30 | * @since 0.3.0 | |
31 | */ | |
32 | public AuthorizationServiceException () { | |
33 | 0 | super(); |
34 | 0 | } |
35 | ||
36 | /** | |
37 | * Creates an unspecified authorization service exception with the specified message. | |
38 | * @param message the message for this exception. | |
39 | * @since 0.3.0 | |
40 | */ | |
41 | public AuthorizationServiceException (String message) { | |
42 | 0 | super(message); |
43 | 0 | } |
44 | ||
45 | /** | |
46 | * Creates an unspecified authorization service exception with the specified root cause. | |
47 | * @param cause the {@link Throwable} causing this exception to be thrown. | |
48 | * @since 0.3.0 | |
49 | */ | |
50 | public AuthorizationServiceException (Throwable cause) { | |
51 | 0 | super(cause); |
52 | 0 | } |
53 | ||
54 | /** | |
55 | * Creates an unspecified authorization service exception with the specified message and root | |
56 | * cause. | |
57 | * @param message the message for this exception. | |
58 | * @param cause the {@link Throwable} causing this exception to be thrown. | |
59 | * @since 0.3.0 | |
60 | */ | |
61 | public AuthorizationServiceException (String message, Throwable cause) { | |
62 | 0 | super(message, cause); |
63 | 0 | } |
64 | ||
65 | } |