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; 9 10 /** 11 * Thrown when an operation requires a database and that database does not 12 * exist. 13 * 14 * <p>The {@link Transaction} handle is <em>not</em> invalidated as a result of 15 * this exception.</p> 16 */ 17 public class DatabaseNotFoundException extends OperationFailureException { 18 19 private static final long serialVersionUID = 1895430616L; 20 21 /** 22 * For internal use only. 23 * @hidden 24 */ DatabaseNotFoundException(String message)25 public DatabaseNotFoundException(String message) { 26 super(null /*locker*/, false /*abortOnly*/, message, null /*cause*/); 27 } 28 29 /** 30 * For internal use only. 31 * @hidden 32 */ DatabaseNotFoundException(String message, DatabaseNotFoundException cause)33 private DatabaseNotFoundException(String message, 34 DatabaseNotFoundException 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 DatabaseNotFoundException(msg, this); 45 } 46 } 47