01: package org.jgroups.persistence;
02:
03: /**
04: * @author Mandar Shinde
05: * This exception inherits the Exception class and is used in
06: * cases where the Persistence Storage cannot create schema to
07: * use the API as required. At this point, top level use needs to
08: * decide whether to continue or abort.
09: */
10:
11: public class CannotCreateSchemaException extends Exception {
12:
13: /**
14: * @param t
15: * @param reason implementor-specified runtime reason
16: */
17: public CannotCreateSchemaException(Throwable t, String reason) {
18: this .t = t;
19: this .reason = reason;
20: }
21:
22: /**
23: * @return String
24: */
25: public String toString() {
26: String tmp = "Exception " + t.toString()
27: + " was thrown due to " + reason;
28: return tmp;
29: }
30:
31: /**
32: * members are made available so that the top level user can dump
33: * appropriate members on to his stack trace
34: */
35: private Throwable t = null;
36: private String reason = null;
37: }
|