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 remove a pair
07: * from its storage mechanism (leading to permannt errors)
08: */
09:
10: public class CannotRemoveException extends Exception {
11:
12: /**
13: * @param t
14: * @param reason implementor-specified runtime reason
15: */
16: public CannotRemoveException(Throwable t, String reason) {
17: this .t = t;
18: this .reason = reason;
19: }
20:
21: /**
22: * @return String;
23: */
24: public String toString() {
25: String tmp = "Exception " + t.toString()
26: + " was thrown due to " + reason;
27: return tmp;
28: }
29:
30: /**
31: * members are made available so that the top level user can dump
32: * appropriate members on to his stack trace
33: */
34: public Throwable t = null;
35: public String reason = null;
36: }
|