Class LicensingRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.alachisoft.ncache.runtime.exceptions.runtime.CacheRuntimeException
-
- com.alachisoft.ncache.runtime.exceptions.runtime.LicensingRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
public class LicensingRuntimeException extends CacheRuntimeException
LicensingException is thrown when Either license has expired or some error occurred during the validation of license.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.alachisoft.ncache.runtime.exceptions.runtime.CacheRuntimeException
_stackTrace
-
-
Constructor Summary
Constructors Constructor Description LicensingRuntimeException()
Constructs anOperationFailedException
withnull
as its error detail message.LicensingRuntimeException(int errorCode, java.lang.String errorMessage)
Constructs a new LicensingRuntimeException with the specified errorCode and reasonLicensingRuntimeException(int errorCode, java.lang.String reason, java.lang.String stackTrace)
Constructs a new LicensingRuntimeException with the specified errorCode and reason and stacktraceLicensingRuntimeException(java.lang.String s)
Constructs anOperationFailedException
with the specified detail message.LicensingRuntimeException(java.lang.String s, boolean isTracable)
Initializes a new instance of the LicensingRuntimeException classLicensingRuntimeException(java.lang.String message, java.lang.Throwable cause)
Constructs a new LicensingRuntimeException with the specified detail message and cause.LicensingRuntimeException(java.lang.String message, java.lang.Throwable cause, boolean isTracable)
Initializes a new instance of the LicensingRuntimeException classLicensingRuntimeException(java.lang.Throwable cause)
Constructs a new LicensingRuntimeException with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getIsTracable()
Returns the traceability of exception-
Methods inherited from class com.alachisoft.ncache.runtime.exceptions.runtime.CacheRuntimeException
getErrorCode, printStackTrace, setErrorCode
-
-
-
-
Constructor Detail
-
LicensingRuntimeException
public LicensingRuntimeException()
Constructs anOperationFailedException
withnull
as its error detail message.
-
LicensingRuntimeException
public LicensingRuntimeException(java.lang.String s)
Constructs anOperationFailedException
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.
-
LicensingRuntimeException
public LicensingRuntimeException(java.lang.String message, java.lang.Throwable cause)
Constructs a new LicensingRuntimeException with the specified detail message and cause.Note that the detail message associated with
cause
is not automatically incorporated in this runtime exception's detail message.- Parameters:
message
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method).cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 1.4
-
LicensingRuntimeException
public LicensingRuntimeException(java.lang.Throwable cause)
Constructs a new LicensingRuntimeException with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.- Parameters:
cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 1.4
-
LicensingRuntimeException
public LicensingRuntimeException(int errorCode, java.lang.String errorMessage)
Constructs a new LicensingRuntimeException with the specified errorCode and reason- Parameters:
errorCode
- assigned Error codeerrorMessage
- detail message
-
LicensingRuntimeException
public LicensingRuntimeException(java.lang.String s, boolean isTracable)
Initializes a new instance of the LicensingRuntimeException class- Parameters:
s
- detail messageisTracable
- either traceable or not
-
LicensingRuntimeException
public LicensingRuntimeException(java.lang.String message, java.lang.Throwable cause, boolean isTracable)
Initializes a new instance of the LicensingRuntimeException class- Parameters:
message
- detail messagecause
- The exception that is the cause of the current exceptionisTracable
- either traceable or not
-
LicensingRuntimeException
public LicensingRuntimeException(int errorCode, java.lang.String reason, java.lang.String stackTrace)
Constructs a new LicensingRuntimeException with the specified errorCode and reason and stacktrace- Parameters:
errorCode
- assigned Error codereason
- detail messagestackTrace
- stackTrace
-
-