Package javax.cache.integration
Class CacheWriterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.cache.CacheException
-
- javax.cache.integration.CacheWriterException
-
- All Implemented Interfaces:
Serializable
public class CacheWriterException extends CacheException
An exception to indicate a problem has occurred executing aCacheWriter
.A Caching Implementation must wrap any
Exception
thrown by aCacheWriter
in this exception.- Since:
- 1.0
- Author:
- Greg Luck
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheWriterException()
Constructs a new CacheWriterException.CacheWriterException(String message)
Constructs a new CacheWriterException with a message string.CacheWriterException(String message, Throwable cause)
Constructs a CacheWriterException with a message string, and a base exceptionCacheWriterException(Throwable cause)
Constructs a new CacheWriterException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (that typically contains the class and detail message of cause).
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CacheWriterException
public CacheWriterException()
Constructs a new CacheWriterException.
-
CacheWriterException
public CacheWriterException(String message)
Constructs a new CacheWriterException with a message string.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
CacheWriterException
public CacheWriterException(String message, Throwable cause)
Constructs a CacheWriterException with a message string, and a base exception- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.cause
- the cause (that is saved for later retrieval by theThrowable.getCause()
method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 1.0
-
CacheWriterException
public CacheWriterException(Throwable cause)
Constructs a new CacheWriterException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (that typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.- Parameters:
cause
- the cause (that is saved for later retrieval by theThrowable.getCause()
method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 1.0
-
-