Package javax.cache.integration
Class CacheLoaderException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.cache.CacheException
-
- javax.cache.integration.CacheLoaderException
-
- All Implemented Interfaces:
java.io.Serializable
public class CacheLoaderException extends CacheException
An exception to indicate a problem has occurred executing aCacheLoader
.A Caching Implementation must wrap any
Exception
thrown by aCacheLoader
in this exception.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description CacheLoaderException()
Constructs a new CacheLoaderException.CacheLoaderException(java.lang.String message)
Constructs a new CacheLoaderException with a message string.CacheLoaderException(java.lang.String message, java.lang.Throwable cause)
Constructs a CacheLoaderException with a message string, and a base exceptionCacheLoaderException(java.lang.Throwable cause)
Constructs a new CacheLoaderException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (that typically contains the class and detail message of cause).
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CacheLoaderException
public CacheLoaderException()
Constructs a new CacheLoaderException.
-
CacheLoaderException
public CacheLoaderException(java.lang.String message)
Constructs a new CacheLoaderException with a message string.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
CacheLoaderException
public CacheLoaderException(java.lang.String message, java.lang.Throwable cause)
Constructs a CacheLoaderException 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
-
CacheLoaderException
public CacheLoaderException(java.lang.Throwable cause)
Constructs a new CacheLoaderException 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
-
-