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: IsSessionValidErrorException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.authentication.sessionmanagers.exceptions;
09:
10: import com.uwyn.rife.authentication.exceptions.SessionManagerException;
11: import com.uwyn.rife.database.exceptions.DatabaseException;
12:
13: public class IsSessionValidErrorException extends
14: SessionManagerException {
15: private static final long serialVersionUID = -4255610298209171384L;
16:
17: private String mAuthId = null;
18: private String mHostIp = null;
19:
20: public IsSessionValidErrorException(String authId, String hostIp) {
21: this (authId, hostIp, null);
22: }
23:
24: public IsSessionValidErrorException(String authId, String hostIp,
25: DatabaseException cause) {
26: super (
27: "Unable to check the validity of the session with authid '"
28: + authId + "' for hostip '" + hostIp + "'.",
29: cause);
30: mAuthId = authId;
31: mHostIp = hostIp;
32: }
33:
34: public String getAuthId() {
35: return mAuthId;
36: }
37:
38: public String getHostIp() {
39: return mHostIp;
40: }
41: }
|