01: /*-
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2002,2008 Oracle. All rights reserved.
05: *
06: * $Id: ExceptionEvent.java,v 1.4.2.2 2008/01/07 15:14:08 cwl Exp $
07: */
08:
09: package com.sleepycat.je;
10:
11: public class ExceptionEvent {
12: private Exception exception;
13: private String threadName;
14:
15: public ExceptionEvent(Exception exception, String threadName) {
16: this .exception = exception;
17: this .threadName = threadName;
18: }
19:
20: public ExceptionEvent(Exception exception) {
21: this .exception = exception;
22: this .threadName = Thread.currentThread().toString();
23: }
24:
25: public Exception getException() {
26: return exception;
27: }
28:
29: public String getThreadName() {
30: return threadName;
31: }
32: }
|