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: CantRetrieveResourceContentException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.resources.exceptions;
09:
10: import java.net.URL;
11:
12: public class CantRetrieveResourceContentException extends
13: ResourceFinderErrorException {
14: private static final long serialVersionUID = 5514414842991049686L;
15:
16: private URL mResource = null;
17: private String mEncoding = null;
18:
19: public CantRetrieveResourceContentException(URL resource,
20: String encoding, Throwable e) {
21: super ("Error while retrieving the content of resource '"
22: + resource.toString() + "' with encoding '" + encoding
23: + "'.", e);
24:
25: mResource = resource;
26: mEncoding = encoding;
27: }
28:
29: public URL getResource() {
30: return mResource;
31: }
32:
33: public String getEncoding() {
34: return mEncoding;
35: }
36: }
|