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.ExceptionIt 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 anCacheExceptionwithnullas 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 anCacheExceptionwith 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 intgetErrorCode()voidprintStackTrace()voidsetErrorCode(int value)
-
-
-
Constructor Detail
-
CacheException
public CacheException()
Constructs anCacheExceptionwithnullas 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 anCacheExceptionwith the specified detail message. The error message stringscan later be retrieved by themethod 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)
-
-