01: /*
02: Copyright 2004 Philip Jacob <phil@whirlycott.com>
03: Seth Fitzsimmons <seth@note.amherst.edu>
04:
05: Licensed under the Apache License, Version 2.0 (the "License");
06: you may not use this file except in compliance with the License.
07: You may obtain a copy of the License at
08:
09: http://www.apache.org/licenses/LICENSE-2.0
10:
11: Unless required by applicable law or agreed to in writing, software
12: distributed under the License is distributed on an "AS IS" BASIS,
13: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: See the License for the specific language governing permissions and
15: limitations under the License.
16: */
17:
18: package com.whirlycott.cache;
19:
20: /**
21: * Gets thrown when problems occur with the Whirlycache. It currently doesn't describe any specific problem, but rather
22: * acts to encapsulate the varying types of Exceptions that the different ManagedCache implementations might throw.
23: *
24: * @author Phil Jacob
25: */
26: public class CacheException extends Exception {
27:
28: /**
29: *
30: */
31: private static final long serialVersionUID = -4798498446556221410L;
32:
33: public CacheException() {
34: super ();
35: }
36:
37: /**
38: * @param message
39: */
40: public CacheException(final String message) {
41: super (message);
42: }
43:
44: /**
45: * @param cause
46: */
47: public CacheException(final Throwable cause) {
48: super (cause);
49: }
50:
51: /**
52: * @param message
53: * @param cause
54: */
55: public CacheException(final String message, final Throwable cause) {
56: super(message, cause);
57: }
58:
59: }
|