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.common.catalog.replica;
17:
18: import org.griphyn.common.catalog.CatalogException;
19:
20: /**
21: * Class to notify of failures. Exceptions are chained like the
22: * {@link java.sql.SQLException} interface.<p>
23: *
24: * @author Jens-S. Vöckler, Karan Vahi
25: * @see org.griphyn.common.catalog.ReplicaCatalog
26: */
27: public class ReplicaCatalogException extends CatalogException {
28: /*
29: * Constructs a <code>ReplicaCatalogException</code> with no detail
30: * message.
31: */
32: public ReplicaCatalogException() {
33: super ();
34: }
35:
36: /**
37: * Constructs a <code>ReplicaCatalogException</code> with the
38: * specified detailed message.
39: *
40: * @param s is the detailled message.
41: */
42: public ReplicaCatalogException(String s) {
43: super (s);
44: }
45:
46: /**
47: * Constructs a <code>ReplicaCatalogException</code> with the
48: * specified detailed message and a cause.
49: *
50: * @param s is the detailled message.
51: * @param cause is the cause (which is saved for later retrieval by the
52: * {@link java.lang.Throwable#getCause()} method). A <code>null</code>
53: * value is permitted, and indicates that the cause is nonexistent or
54: * unknown.
55: */
56: public ReplicaCatalogException(String s, Throwable cause) {
57: super (s, cause);
58: }
59:
60: /**
61: * Constructs a <code>ReplicaCatalogException</code> with the
62: * specified just a cause.
63: *
64: * @param cause is the cause (which is saved for later retrieval by the
65: * {@link java.lang.Throwable#getCause()} method). A <code>null</code>
66: * value is permitted, and indicates that the cause is nonexistent or
67: * unknown.
68: */
69: public ReplicaCatalogException(Throwable cause) {
70: super(cause);
71: }
72: }
|