01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com> and
03: * JR Boyens <gnu-jrb[remove] at gmx dot net>
04: * Distributed under the terms of either:
05: * - the common development and distribution license (CDDL), v1.0; or
06: * - the GNU Lesser General Public License, v2.1 or later
07: * $Id: NotAuthenticatedElementException.java 3634 2007-01-08 21:42:24Z gbevin $
08: */
09: package com.uwyn.rife.authentication.credentialsmanagers.exceptions;
10:
11: import com.uwyn.rife.engine.exceptions.EngineException;
12:
13: public class NotAuthenticatedElementException extends EngineException {
14: private static final long serialVersionUID = -4829721163927481874L;
15:
16: private String mElementId = null;
17:
18: public NotAuthenticatedElementException(String elementId) {
19: super (
20: "The element '"
21: + elementId
22: + "' is not an authenticated element, so it's impossible to retrieve its credentials manager.");
23:
24: mElementId = elementId;
25: }
26:
27: public String getElementId() {
28: return mElementId;
29: }
30: }
|