1 package org.apache.jcs.access.exception;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 /***
23 * The putSafe method on the JCS convenience class throws this exception if the object is already
24 * present in the cache.
25 * <p>
26 * I'm removing this exception from normal use.
27 * <p>
28 * The overhead of throwing exceptions and the cumbersomeness of coding around exceptions warrants
29 * removal. Exceptions like this don't make sense to throw in the course of normal operations to
30 * signify a normal and expected condition. Returning null if an object isn't found is sufficient.
31 */
32 public class ObjectExistsException
33 extends CacheException
34 {
35 /*** Don't change. */
36 private static final long serialVersionUID = -3779745827993383872L;
37
38 /*** Constructor for the ObjectExistsException object */
39 public ObjectExistsException()
40 {
41 super();
42 }
43
44 /***
45 * Constructor for the ObjectExistsException object
46 * @param message
47 */
48 public ObjectExistsException( String message )
49 {
50 super( message );
51 }
52
53 }