Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

RuntimeExceptionWrapper.java

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 2000-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: RuntimeExceptionWrapper.java,v 12.2 2005/08/01 20:25:23 mark Exp $
00008  */
00009 
00010 package com.sleepycat.util;
00011 
00017 public class RuntimeExceptionWrapper extends RuntimeException
00018     implements ExceptionWrapper {
00019 
00020     private Throwable e;
00021 
00022     public RuntimeExceptionWrapper(Throwable e) {
00023 
00024         super(e.getMessage());
00025         this.e = e;
00026     }
00027 
00031     public Throwable getDetail() {
00032 
00033         return e;
00034     }
00035 
00036     public Throwable getCause() {
00037 
00038         return e;
00039     }
00040 }

Generated on Sun Dec 25 12:14:33 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2