01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: DuplicateRoleException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.authentication.credentialsmanagers.exceptions;
09:
10: import com.uwyn.rife.authentication.exceptions.CredentialsManagerException;
11:
12: public class DuplicateRoleException extends CredentialsManagerException {
13: private static final long serialVersionUID = 3859722464041667678L;
14:
15: private String mRole = null;
16:
17: public DuplicateRoleException(String role) {
18: super ("The role '" + role + "' is already present.");
19:
20: mRole = role;
21: }
22:
23: public String getRole() {
24: return mRole;
25: }
26: }
|