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: UpdateUserErrorException.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.credentialsmanagers.RoleUserAttributes;
11: import com.uwyn.rife.authentication.exceptions.CredentialsManagerException;
12:
13: public class UpdateUserErrorException extends
14: CredentialsManagerException {
15: private static final long serialVersionUID = 644224221069008281L;
16:
17: private String mLogin = null;
18: private RoleUserAttributes mAttributes = null;
19:
20: public UpdateUserErrorException(String role,
21: RoleUserAttributes attributes) {
22: this (role, attributes, null);
23: }
24:
25: public UpdateUserErrorException(String login,
26: RoleUserAttributes attributes, Throwable cause) {
27: super ("Error while updating user with login '" + login + "'.",
28: cause);
29: mLogin = login;
30: mAttributes = attributes;
31: }
32:
33: public String getLogin() {
34: return mLogin;
35: }
36:
37: public RoleUserAttributes getAttributes() {
38: return mAttributes;
39: }
40: }
|