Source code: org/jeteam/bean/security/RoleException.java
1 /*
2 * JETeam, Java Enterprise TeamWork
3 *
4 * Distributable under the GPL license.
5 * See terms of licence at http://www.gnu.org
6 *
7 * $Source: /cvsroot/jeteam/jeteam/jeteam-bcx/src/java/org/jeteam/bean/security/RoleException.java,v $
8 * $Date: 2003/05/28 22:07:48 $
9 * $Author: draftdog $
10 * $Revision: 1.11 $
11 */
12 package org.jeteam.bean.security;
13
14 import org.jeteam.util.exception.JeteamException;
15
16 /**
17 * This exception represents a business exception, the arguments
18 * passed to the constructor should be the i18n context message key,
19 * its associated parameters, and a Throwable instance that cause this
20 * exception (if any).
21 *
22 * @see org.jeteam.util.exception.JeteamException
23 */
24 public class RoleException extends JeteamException
25 {
26 /**
27 * Just providing the context message key.
28 *
29 * @param message The context message key.
30 */
31 public RoleException(String message)
32 {
33 super(message);
34 }
35
36 /**
37 * Passing the context message key and the cause of the exception.
38 *
39 * @param message The context message key.
40 * @param cause The cause of this exception.
41 */
42 public RoleException(String message, Throwable cause)
43 {
44 super(message, cause);
45 }
46
47 /**
48 * Passing the context message key and an associated parameter.
49 *
50 * @param message The context message key.
51 * @param parameter The parameter that will be passed into the context message value.
52 */
53 public RoleException(String message, Object parameter)
54 {
55 super(message, parameter);
56 }
57
58 /**
59 * Passing the context message key, an associated parameter and the cause of the exception.
60 *
61 * @param message The context message key.
62 * @param parameter The parameter that will be passed into the context message value.
63 * @param cause The cause of this exception.
64 */
65 public RoleException(String message, Object parameter, Throwable cause)
66 {
67 super(message, parameter, cause);
68 }
69
70 /**
71 * Passing the context message key and the associated parameters.
72 *
73 * @param message The context message key.
74 * @param parameters The parameters that will be passed into the context message value.
75 */
76 public RoleException(String message, Object[] parameters)
77 {
78 super(message, parameters);
79 }
80
81 /**
82 * Default constructor: passing the context message key, the associated
83 * parameters and the cause of the exception.
84 *
85 * @param message The context message key.
86 * @param parameters The parameters that will be passed into the context message value.
87 * @param cause The cause of this exception.
88 */
89 public RoleException(String message, Object[] parameters, Throwable cause)
90 {
91 super(message, parameters, cause);
92 }
93 }
94