01: /*
02: * Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
03: * (http://h2database.com/html/license.html).
04: * Initial Developer: H2 Group
05: */
06: package org.h2.message;
07:
08: /**
09: * This exception wraps a checked exception.
10: * It is used in methods where checked exceptions are not supported,
11: * for example in a Comparator.
12: */
13: public class InternalException extends RuntimeException {
14:
15: private static final long serialVersionUID = -5369631382082604330L;
16: private Exception cause;
17:
18: public InternalException(Exception e) {
19: cause = e;
20: }
21:
22: public Exception getOriginalCause() {
23: return cause;
24: }
25: }
|