KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > persistence > CannotRemoveException


1 package org.jgroups.persistence;
2
3 /**
4  * @author Mandar Shinde
5  * This exception inherits the Exception class and is used in
6  * cases where the Persistence Storage cannot remove a pair
7  * from its storage mechanism (leading to permannt errors)
8  */

9
10 public class CannotRemoveException extends Exception JavaDoc
11 {
12
13     /**
14      * @param Throwable;
15      * @param String; implementor filling in runtime reason
16      */

17     public CannotRemoveException(Throwable JavaDoc t, String JavaDoc reason)
18     {
19     this.t = t;
20     this.reason = reason;
21     }
22
23     /**
24      * @return String;
25      */

26     public String JavaDoc toString()
27     {
28     String JavaDoc tmp = "Exception " + t.toString() + " was thrown due to " + reason;
29     return tmp;
30     }
31
32     /**
33      * members are made available so that the top level user can dump
34      * appropriate members on to his stack trace
35      */

36     public Throwable JavaDoc t = null;
37     public String JavaDoc reason = null;
38 }
39
Popular Tags