Class ObjectExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.jcs3.access.exception.CacheException
org.apache.commons.jcs3.access.exception.ObjectExistsException
- All Implemented Interfaces:
Serializable
The putSafe method on the JCS convenience class throws this exception if the object is already
present in the cache.
I'm removing this exception from normal use.
The overhead of throwing exceptions and the cumbersomeness of coding around exceptions warrants removal. Exceptions like this don't make sense to throw in the course of normal operations to signify a normal and expected condition. Returning null if an object isn't found is sufficient.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the ObjectExistsException objectObjectExistsException
(String message) Constructor for the ObjectExistsException object -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ObjectExistsException
public ObjectExistsException()Constructor for the ObjectExistsException object -
ObjectExistsException
Constructor for the ObjectExistsException object- Parameters:
message
-
-