|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.jcs.access.exception.CacheException
org.apache.jcs.access.exception.ObjectExistsException
public class ObjectExistsException
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.
Constructor Summary | |
---|---|
ObjectExistsException()
Constructor for the ObjectExistsException object |
|
ObjectExistsException(String message)
Constructor for the ObjectExistsException object |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectExistsException()
public ObjectExistsException(String message)
message
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |