01 /*
02 * ResourceInstantiationException.java
03 *
04 * Copyright (c) 1995-2010, The University of Sheffield. See the file
05 * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
06 *
07 * This file is part of GATE (see http://gate.ac.uk/), and is free
08 * software, licenced under the GNU Library General Public License,
09 * Version 2, June 1991 (in the distribution as file licence.html,
10 * and also available at http://gate.ac.uk/gate/licence.html).
11 *
12 * Hamish Cunningham, 23/Oct/2000
13 *
14 * $Id: ResourceInstantiationException.java 12006 2009-12-01 17:24:28Z thomas_heitz $
15 */
16
17 package gate.creole;
18
19 import gate.util.GateException;
20
21 /** This exception indicates failure during instantiation of resources,
22 * which may be due to a number of causes:
23 * <UL>
24 * <LI>
25 * the resource metadata contains parameters that aren't available on
26 * the resource;
27 * <LI>
28 * the class for the resource cannot be found (e.g. because a Jar URL was
29 * incorrectly specified);
30 * <LI>
31 * because access to the resource class is denied by the class loader;
32 * <LI>
33 * because of insufficient or incorrect resource metadata.
34 * </UL>
35 */
36 public class ResourceInstantiationException extends GateException {
37 /** Debug flag */
38 private static final boolean DEBUG = false;
39
40 public ResourceInstantiationException() {
41 super();
42 }
43
44 public ResourceInstantiationException(String s) {
45 super(s);
46 }
47
48 public ResourceInstantiationException(Exception e) {
49 super(e);
50 }
51
52 public ResourceInstantiationException(String message, Exception e) {
53 super(message, e);
54 }
55 } // ResourceInstantiationException
|