Class CacheException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.alachisoft.ncache.runtime.exceptions.CacheException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AggregateException
,CommandException
,CompactSerializationException
,ConfigurationException
,GeneralFailureException
,InternalCommandException
,LicensingException
,LocalVerificationFailedException
,LockingException
,MaxClientReachedException
,NotSupportedException
,OperationFailedException
,OperationNotSupportedException
,SecurityException
,StreamAlreadyLockedException
,StreamException
,StreamNotFoundException
public class CacheException extends java.lang.Exception
It is the base class for all the exceptions that are thrown from NCache. So you can catch this exception for all the exceptions thrown from within the NCache.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheException()
Constructs anCacheException
withnull
as its error detail message.CacheException(int errorCode)
CacheException(int errorCode, java.lang.String message)
CacheException(int errorCode, java.lang.String reason, java.lang.String stackTrace)
CacheException(int errorCode, java.lang.String reason, java.lang.Throwable cause)
CacheException(java.lang.String s)
Constructs anCacheException
with the specified detail message.CacheException(java.lang.String message, java.lang.Throwable cause)
CacheException(java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCode()
void
printStackTrace()
void
setErrorCode(int value)
-
-
-
Constructor Detail
-
CacheException
public CacheException()
Constructs anCacheException
withnull
as its error detail message.
-
CacheException
public CacheException(int errorCode)
-
CacheException
public CacheException(int errorCode, java.lang.String reason, java.lang.String stackTrace)
-
CacheException
public CacheException(int errorCode, java.lang.String reason, java.lang.Throwable cause)
-
CacheException
public CacheException(java.lang.String s)
Constructs anCacheException
with the specified detail message. The error message strings
can later be retrieved by the
method of classThrowable.getMessage()
java.lang.Throwable
.- Parameters:
s
- the detail message.
-
CacheException
public CacheException(java.lang.Throwable cause)
-
CacheException
public CacheException(java.lang.String message, java.lang.Throwable cause)
-
CacheException
public CacheException(int errorCode, java.lang.String message)
-
-