01: package javax.cache;
02:
03: /**
04: * CacheException is a generic exception, which indicates
05: * a cache error has occurred. All the other cache exceptions are the
06: * subclass of this class. All the methods in the cache package only
07: * throw CacheException or the sub class of it.
08: */
09: public class CacheException extends Exception {
10: // CODE REVIEW: 4/7/2005, Nikita Ivanov.
11: // I would prohibit creation of no-message exceptions.
12: // BG: For better or worse, it is considered standard for JDK exceptions to have the four basic constructors
13:
14: public CacheException() {
15: super ();
16: }
17:
18: public CacheException(String s) {
19: super (s);
20: }
21:
22: public CacheException(String s, Throwable cause) {
23: super (s, cause);
24: }
25:
26: public CacheException(Throwable cause) {
27: super(cause);
28: }
29: }
|