1 /*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2002, 2014 Oracle and/or its affiliates. All rights reserved. 5 * 6 */ 7 8 package com.sleepycat.je.rep; 9 10 import com.sleepycat.je.OperationFailureException; 11 12 /** 13 * @hidden internal, for use in disaster recovery [#23447] 14 * 15 * Thrown when an operation is performed on an active replication group member 16 * but it requires that the member not be active. 17 */ 18 public class MemberActiveException extends OperationFailureException { 19 private static final long serialVersionUID = 1; 20 21 /** 22 * For internal use only. 23 * @hidden 24 */ MemberActiveException(String message)25 public MemberActiveException(String message) { 26 super(null /*locker*/, false /*abortOnly*/, message, null /*cause*/); 27 } 28 29 /** 30 * For internal use only. 31 * @hidden 32 */ MemberActiveException(String message, MemberActiveException cause)33 private MemberActiveException(String message, 34 MemberActiveException cause) { 35 super(message, cause); 36 } 37 38 /** 39 * For internal use only. 40 * @hidden 41 */ 42 @Override wrapSelf(String msg)43 public OperationFailureException wrapSelf(String msg) { 44 return new MemberActiveException(msg, this); 45 } 46 } 47