1/*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2002,2008 Oracle. All rights reserved. 5 * 6 * $Id: NullTransactionRunner.java,v 12.6 2008/01/08 20:58:57 bostic Exp $ 7 */ 8 9package com.sleepycat.collections.test; 10 11import com.sleepycat.collections.TransactionRunner; 12import com.sleepycat.collections.TransactionWorker; 13import com.sleepycat.db.Environment; 14import com.sleepycat.util.ExceptionUnwrapper; 15 16class NullTransactionRunner extends TransactionRunner { 17 18 NullTransactionRunner(Environment env) { 19 20 super(env); 21 } 22 23 public void run(TransactionWorker worker) 24 throws Exception { 25 26 try { 27 worker.doWork(); 28 } catch (Exception e) { 29 throw ExceptionUnwrapper.unwrap(e); 30 } 31 } 32} 33