01: /*
02: * This file or a portion of this file is licensed under the terms of
03: * the Globus Toolkit Public License, found in file GTPL, or at
04: * http://www.globus.org/toolkit/download/license.html. This notice must
05: * appear in redistributions of this file, with or without modification.
06: *
07: * Redistributions of this Software, with or without modification, must
08: * reproduce the GTPL in: (1) the Software, or (2) the Documentation or
09: * some other similar material which is provided with the Software (if
10: * any).
11: *
12: * Copyright 1999-2004 University of Chicago and The University of
13: * Southern California. All rights reserved.
14: */
15:
16: package org.griphyn.cPlanner.transfer.implementation;
17:
18: import org.griphyn.common.util.FactoryException;
19:
20: /**
21: * Class to notify of failures while instantiating Transfer Implementations.
22: *
23: * @author Karan Vahi
24: * @version $Revision: 50 $
25: */
26:
27: public class TransferImplementationFactoryException extends
28: FactoryException {
29:
30: /**
31: * The default classname that is associated with the exception.
32: */
33: public static final String DEFAULT_NAME = "Transfer Implementation";
34:
35: /**
36: * Constructs a <code>TransferImplementationFactoryException</code> with no detail
37: * message. The associated classname is set to value specified by
38: * <code>DEFAULT_NAME</code>.
39: *
40: * @param msg the detailed message.
41: *
42: * @see #DEFAULT_NAME
43: */
44: public TransferImplementationFactoryException(String msg) {
45: super (msg);
46: mClassname = this .DEFAULT_NAME;
47: }
48:
49: /**
50: * Constructs a <code>TransferImplementationFactoryException</code> with the specified detailed
51: * message.
52: *
53: * @param msg is the detailed message.
54: * @param classname the name of class that was trying to be instantiated or
55: * some other signifier like module name.
56: */
57: public TransferImplementationFactoryException(String msg,
58: String classname) {
59: super (msg, classname);
60: }
61:
62: /**
63: * Constructs a <code>TransferImplementationFactoryException</code> with the
64: * specified detailed message and a cause. The associated classname is set
65: * to value specified by <code>DEFAULT_NAME</code>.
66: *
67: * @param msg is the detailed message that is to be logged.
68: * @param cause is the cause (which is saved for later retrieval by the
69: * {@link java.lang.Throwable#getCause()} method). A <code>null</code>
70: * value is permitted, and indicates that the cause is nonexistent or
71: * unknown.
72: *
73: * @see #DEFAULT_NAME
74: */
75: public TransferImplementationFactoryException(String msg,
76: Throwable cause) {
77: super (msg, cause);
78: mClassname = this .DEFAULT_NAME;
79: }
80:
81: /**
82: * Constructs a <code>TransferImplementationFactoryException</code> with the
83: * specified detailed message and a cause.
84: *
85: * @param msg is the detailed message that is to be logged.
86: * @param classname the name of class that was trying to be instantiated.
87: * @param cause is the cause (which is saved for later retrieval by the
88: * {@link java.lang.Throwable#getCause()} method). A <code>null</code>
89: * value is permitted, and indicates that the cause is nonexistent or
90: * unknown.
91: */
92: public TransferImplementationFactoryException(String msg,
93: String classname, Throwable cause) {
94: super(msg, cause);
95: mClassname = classname;
96: }
97:
98: }
|