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: CreateRememberIdErrorException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.authentication.remembermanagers.exceptions;
09:
10: import com.uwyn.rife.authentication.exceptions.RememberManagerException;
11:
12: public class CreateRememberIdErrorException extends
13: RememberManagerException {
14: private static final long serialVersionUID = 5174821054624717542L;
15:
16: private long mUserId = -1;
17:
18: public CreateRememberIdErrorException(long userId) {
19: this (userId, null);
20: }
21:
22: public CreateRememberIdErrorException(long userId, Throwable cause) {
23: super ("Unable to create a remember id for userid '" + userId
24: + "'.", cause);
25:
26: mUserId = userId;
27: }
28:
29: public long getUserId() {
30: return mUserId;
31: }
32: }
|