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