public class ObjectExistsException extends CacheException
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 and Description |
---|
ObjectExistsException()
Constructor for the ObjectExistsException object
|
ObjectExistsException(String message)
Constructor for the ObjectExistsException object
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ObjectExistsException()
public ObjectExistsException(String message)
message
- Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.