1/*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 1997-2009 Oracle. All rights reserved. 5 * 6 * $Id$ 7 */ 8package com.sleepycat.db; 9 10import com.sleepycat.db.internal.DbEnv; 11 12/** 13Thrown when a database handle has been invalidated because a replication 14election unrolled a committed transaction. 15When this happens the handle is no longer able to be used and the application 16must close the handle using the {@link com.sleepycat.db.Database#close Database.close} method and open a new 17handle. This exception is thrown when a client unrolls a transaction in order 18to synchronize with a new master. If the application was permitted to use the 19original handle, it's possible the handle might attempt to access nonexistent 20resources. 21*/ 22public class ReplicationHandleDeadException extends DatabaseException { 23 /* package */ ReplicationHandleDeadException(final String s, 24 final int errno, 25 final DbEnv dbenv) { 26 super(s, errno, dbenv); 27 } 28} 29