Class OperationFailedRuntimeException
- 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.OperationFailedRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
public class OperationFailedRuntimeException extends CacheRuntimeException
OperationFailedRuntimeException is the superclass of those exceptions that can be thrown runtime operation failed.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.alachisoft.ncache.runtime.exceptions.runtime.CacheRuntimeException
_stackTrace
-
-
Constructor Summary
Constructors Constructor Description OperationFailedRuntimeException()
Constructs anOperationFailedException
withnull
as its error detail message.OperationFailedRuntimeException(int errorCode, java.lang.String errorMessage)
Constructs a new OperationFailedRuntimeException with the specified errorCode and reasonOperationFailedRuntimeException(int errorCode, java.lang.String reason, java.lang.String stackTrace)
Constructs a new OperationFailedRuntimeException with the specified errorCode and reason and stacktraceOperationFailedRuntimeException(java.lang.String s)
Constructs anOperationFailedException
with the specified detail message.OperationFailedRuntimeException(java.lang.String s, boolean isTracable)
Initializes a new instance of the OperationFailedRuntimeException classOperationFailedRuntimeException(java.lang.String message, java.lang.Throwable cause)
Constructs a new OperationFailedRuntimeException with the specified detail message and cause.OperationFailedRuntimeException(java.lang.String message, java.lang.Throwable cause, boolean isTracable)
Initializes a new instance of the OperationFailedRuntimeException classOperationFailedRuntimeException(java.lang.Throwable cause)
Constructs a new OperationFailedRuntimeException 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
-
OperationFailedRuntimeException
public OperationFailedRuntimeException()
Constructs anOperationFailedException
withnull
as its error detail message.
-
OperationFailedRuntimeException
public OperationFailedRuntimeException(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.
-
OperationFailedRuntimeException
public OperationFailedRuntimeException(java.lang.String message, java.lang.Throwable cause)
Constructs a new OperationFailedRuntimeException 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
-
OperationFailedRuntimeException
public OperationFailedRuntimeException(java.lang.Throwable cause)
Constructs a new OperationFailedRuntimeException 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
-
OperationFailedRuntimeException
public OperationFailedRuntimeException(int errorCode, java.lang.String errorMessage)
Constructs a new OperationFailedRuntimeException with the specified errorCode and reason- Parameters:
errorCode
- assigned Error codeerrorMessage
- detail message
-
OperationFailedRuntimeException
public OperationFailedRuntimeException(java.lang.String s, boolean isTracable)
Initializes a new instance of the OperationFailedRuntimeException class- Parameters:
s
- detail messageisTracable
- either traceable or not
-
OperationFailedRuntimeException
public OperationFailedRuntimeException(java.lang.String message, java.lang.Throwable cause, boolean isTracable)
Initializes a new instance of the OperationFailedRuntimeException class- Parameters:
message
- detail messagecause
- The exception that is the cause of the current exceptionisTracable
- either traceable or not
-
OperationFailedRuntimeException
public OperationFailedRuntimeException(int errorCode, java.lang.String reason, java.lang.String stackTrace)
Constructs a new OperationFailedRuntimeException with the specified errorCode and reason and stacktrace- Parameters:
errorCode
- assigned Error codereason
- detail messagestackTrace
- stackTrace
-
-