javax.util.jcache
Class CacheException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.util.jcache.CacheException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CacheFullException, CacheNotAvailableException, CachePermissionException, CallbackException, CantSynchronizeGroupException, DiskCacheException, GroupNameException, GroupUseException, InvalidArgumentException, InvalidGroupException, InvalidHandleException, InvalidObjectException, LoadConflictException, NetOfflineException, NetworkException, NotARetrievableObjectException, NotImplementedException, NullObjectException, NullObjectNameException, ObjectExistsException, ObjectNotFoundException, ObjectNotSynchronizedException, RegionNotFoundException, ResponseFailedException, TimeoutException

public class CacheException
extends Exception

An exception was caught or generated within the cache.

See Also:
Serialized Form

Constructor Summary
CacheException()
          Creates new CacheException without detail message.
CacheException(Exception cause)
          Constructs an CacheException with the specified detail Exception.
CacheException(String msg)
          Constructs an CacheException with the specified detail message.
CacheException(String message, Exception cause)
          Constructs an CacheException with the specified detail Exception and additional message.
 
Method Summary
 Exception getBase()
          Gets the wrapped exception
 String getLocalizedMessage()
           
 String getMessage()
           
 void printStackTrace()
          prints the stacktrace for this Exception, and if an wrapped exception is in place, that stacktrace is also included.
 void setMessage(String message)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheException

public CacheException()
Creates new CacheException without detail message.


CacheException

public CacheException(String message,
                      Exception cause)
Constructs an CacheException with the specified detail Exception and additional message.

Parameters:
message - the detail message.
cause - the detail exception.

CacheException

public CacheException(Exception cause)
Constructs an CacheException with the specified detail Exception.

Parameters:
cause - the detail exception.

CacheException

public CacheException(String msg)
Constructs an CacheException with the specified detail message.

Parameters:
msg - the detail message.
Method Detail

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

printStackTrace

public final void printStackTrace()
prints the stacktrace for this Exception, and if an wrapped exception is in place, that stacktrace is also included.

Overrides:
printStackTrace in class Throwable
See Also:
Throwable.printStackTrace()

getBase

public final Exception getBase()
Gets the wrapped exception

Returns:
the wrapped exception

setMessage

public void setMessage(String message)


Copyright © 2002-2009 Hosted by SourceForge. All Rights Reserved.