Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
PolicyException |
|
| 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.policy.io; | |
11 | ||
12 | /** | |
13 | * Exception type for policy serialization. | |
14 | * @since 0.1.0 | |
15 | */ | |
16 | public class PolicyException | |
17 | extends Exception | |
18 | { | |
19 | ||
20 | //---- Static | |
21 | ||
22 | /** | |
23 | * @since 0.1.0 | |
24 | */ | |
25 | private static final long serialVersionUID = 6044713060101802286L; | |
26 | ||
27 | //---- Constructors | |
28 | ||
29 | /** | |
30 | * Creates a new exception with the specified message. | |
31 | * @param message the exception details. | |
32 | * @since 0.1.0 | |
33 | */ | |
34 | public PolicyException (String message) { | |
35 | 604 | super(message); |
36 | 604 | } |
37 | ||
38 | /** | |
39 | * Creates a new exception with the specified message and cause. | |
40 | * @param message the exception details. | |
41 | * @param cause the original cause for this exception. | |
42 | * @since 0.1.0 | |
43 | */ | |
44 | public PolicyException (String message, Throwable cause) { | |
45 | 0 | super(message, cause); |
46 | 0 | } |
47 | ||
48 | } |