KickJava   Java API By Example, From Geeks To Geeks.

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


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 create schema to
7  * use the API as required. At this point, top level use needs to
8  * decide whether to continue or abort.
9  */

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

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

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

37     private Throwable JavaDoc t = null;
38     private String JavaDoc reason = null;
39 }
40
Popular Tags