KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > DatabaseException


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: DatabaseException.java,v 1.21 2006/10/30 21:14:11 bostic Exp $
7  */

8
9 package com.sleepycat.je;
10
11 /**
12  * Javadoc for this public class is generated
13  * via the doc templates in the doc_src directory.
14  */

15 public class DatabaseException extends Exception JavaDoc {
16     public DatabaseException() {
17         super();
18     }
19
20     public DatabaseException(Throwable JavaDoc t) {
21         super(t);
22     }
23
24     public DatabaseException(String JavaDoc message) {
25         super(getVersionHeader() + message);
26     }
27
28     public DatabaseException(String JavaDoc message, Throwable JavaDoc t) {
29         super((getVersionHeader() + message), t);
30     }
31
32     /* Public for unit tests. */
33     public static String JavaDoc getVersionHeader() {
34         return "(JE " + JEVersion.CURRENT_VERSION + ") ";
35     }
36 }
37
Popular Tags