1 /**
2 * Copyright 2003-2007 Greg Luck
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package net.sf.ehcache.constructs.asynchronous;
18
19 /**
20 * Thrown if a command id is in the queue but is not in the cache.
21 * <p/>
22 * This could happen on abrupt shutdown of the JVM.
23 * @author <a href="mailto:gluck@thoughtworks.com">Greg Luck</a>
24 * @version $Id: CommandNotFoundInCacheException.java 512 2007-07-10 09:18:45Z gregluck $
25 */
26 public class CommandNotFoundInCacheException extends AsynchronousCommandException {
27
28 /**
29 * Constructs a new exception with the specified detail message. The
30 * cause is not initialized, and may subsequently be initialized by
31 * a call to {@link #initCause}.
32 *
33 * @param message the detail message. The detail message is saved for
34 * later retrieval by the {@link #getMessage()} method.
35 */
36 public CommandNotFoundInCacheException(String message) {
37 super(message);
38 }
39
40 /**
41 * Constructs a new exception with the specified detail message and
42 * cause. <p>Note that the detail message associated with
43 * <code>cause</code> is <i>not</i> automatically incorporated in
44 * this exception's detail message.
45 *
46 * @param message the detail message (which is saved for later retrieval
47 * by the {@link #getMessage()} method).
48 * @param cause the cause (which is saved for later retrieval by the
49 * {@link #getCause()} method). (A <tt>null</tt> value is
50 * permitted, and indicates that the cause is nonexistent or
51 * unknown.)
52 */
53 public CommandNotFoundInCacheException(String message, Throwable cause) {
54 super(message, cause);
55 }
56 }