1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.astrogrid.community.common.exception ;
19
20 import org.astrogrid.store.Ivorn ;
21
22 /***
23 * A base class for policy Exceptions.
24 *
25 */
26 public class CommunityPolicyException
27 extends CommunityException
28 {
29
30 /***
31 * Public constructor.
32 * This should not be used in the main code.
33 * This enables Axis to re-construct the Exception on the client side by treating it as a Bean.
34 *
35 */
36 public CommunityPolicyException()
37 {
38 super() ;
39 }
40
41 /***
42 * Public constructor.
43 * @param message The Exception message.
44 * @param account The Account identifier that caused the Exception.
45 *
46 */
47 public CommunityPolicyException(String message, String account)
48 {
49 super(
50 message,
51 account
52 ) ;
53 }
54
55 /***
56 * Public constructor.
57 * @param message The Exception message.
58 * @param account The Account identifier that caused the Exception.
59 *
60 */
61 public CommunityPolicyException(String message, Ivorn account)
62 {
63 super(
64 message,
65 account
66 ) ;
67 }
68
69 }
70