Class AggregateRuntimeException
- 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.AggregateRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
public class AggregateRuntimeException extends CacheRuntimeException
This exception is thrown when multiple exceptions occur from multiple nodes. It combines all the exceptions as an inner exception and throw it to the client application.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.alachisoft.ncache.runtime.exceptions.runtime.CacheRuntimeException
_stackTrace
-
-
Constructor Summary
Constructors Constructor Description AggregateRuntimeException()
Constructs anOperationFailedException
withnull
as its error detail message.AggregateRuntimeException(int errorCode, java.lang.String errorMessage)
Initializes a new instance of the AggregateRuntimeException classAggregateRuntimeException(int errorCode, java.lang.String errorMessage, java.lang.String stackTrace)
Initializes a new instance of the AggregateRuntimeException classAggregateRuntimeException(java.lang.String s)
Constructs anOperationFailedException
with the specified detail message.AggregateRuntimeException(java.lang.String s, boolean isTracable)
Initializes a new instance of the AggregateRuntimeException classAggregateRuntimeException(java.lang.String message, java.lang.Throwable cause)
Initializes a new instance of the AggregateRuntimeException class with a specified error message and a reference to the inner exception that is the cause of this exception.AggregateRuntimeException(java.lang.String message, java.lang.Throwable cause, boolean isTracable)
Initializes a new instance of the AggregateRuntimeException classAggregateRuntimeException(java.lang.Throwable cause)
Initializes a new instance of the AggregateRuntimeException class with references to the inner exceptions that are the cause of this exception.
-
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
-
AggregateRuntimeException
public AggregateRuntimeException()
Constructs anOperationFailedException
withnull
as its error detail message.
-
AggregateRuntimeException
public AggregateRuntimeException(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.
-
AggregateRuntimeException
public AggregateRuntimeException(java.lang.String message, java.lang.Throwable cause)
Initializes a new instance of the AggregateRuntimeException class with a specified error message and a reference to the inner exception that is the cause of this exception.- Parameters:
message
- The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culturecause
- The exception that is the cause of the current exception
-
AggregateRuntimeException
public AggregateRuntimeException(java.lang.Throwable cause)
Initializes a new instance of the AggregateRuntimeException class with references to the inner exceptions that are the cause of this exception.- Parameters:
cause
- The exception that is the cause of the current exception
-
AggregateRuntimeException
public AggregateRuntimeException(int errorCode, java.lang.String errorMessage)
Initializes a new instance of the AggregateRuntimeException class- Parameters:
errorCode
- assigned errorcodeerrorMessage
- detail message
-
AggregateRuntimeException
public AggregateRuntimeException(int errorCode, java.lang.String errorMessage, java.lang.String stackTrace)
Initializes a new instance of the AggregateRuntimeException class- Parameters:
errorCode
- assigned errorcodeerrorMessage
- detail error messagestackTrace
- stacktrace
-
AggregateRuntimeException
public AggregateRuntimeException(java.lang.String s, boolean isTracable)
Initializes a new instance of the AggregateRuntimeException class- Parameters:
s
- detail messageisTracable
- either traceable or not
-
AggregateRuntimeException
public AggregateRuntimeException(java.lang.String message, java.lang.Throwable cause, boolean isTracable)
Initializes a new instance of the AggregateRuntimeException class- Parameters:
message
- detail messagecause
- The exception that is the cause of the current exceptionisTracable
- either traceable or not
-
-