Class RedisPipelineException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.dao.NonTransientDataAccessException
org.springframework.dao.InvalidDataAccessResourceUsageException
org.springframework.data.redis.connection.RedisPipelineException
- All Implemented Interfaces:
Serializable
public class RedisPipelineException
extends org.springframework.dao.InvalidDataAccessResourceUsageException
Exception thrown when executing/closing a pipeline that contains one or multiple invalid/incorrect statements. The
exception might also contain the pipeline result (if the driver returns it), allowing for analysis and tracing.
Typically, the first exception returned by the pipeline is used as the cause of this exception for easier debugging.
- Author:
- Costin Leau
- See Also:
-
Constructor Summary
ConstructorDescriptionRedisPipelineException
(Exception cause) Constructs a newRedisPipelineException
instance using a default message and an empty pipeline result list.RedisPipelineException
(Exception cause, List<Object> pipelineResult) Constructs a newRedisPipelineException
instance using a default message.RedisPipelineException
(String msg, Throwable cause, List<Object> pipelineResult) Constructs a newRedisPipelineException
instance.RedisPipelineException
(String msg, List<Object> pipelineResult) Constructs a newRedisPipelineException
instance. -
Method Summary
Modifier and TypeMethodDescriptionOptionally returns the result of the pipeline that caused the exception.Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RedisPipelineException
public RedisPipelineException(@Nullable String msg, @Nullable Throwable cause, List<Object> pipelineResult) Constructs a newRedisPipelineException
instance.- Parameters:
msg
- the messagecause
- the causepipelineResult
- the pipeline result
-
RedisPipelineException
Constructs a newRedisPipelineException
instance using a default message.- Parameters:
cause
- the causepipelineResult
- the pipeline result
-
RedisPipelineException
Constructs a newRedisPipelineException
instance using a default message and an empty pipeline result list.- Parameters:
cause
- the cause
-
RedisPipelineException
Constructs a newRedisPipelineException
instance.- Parameters:
msg
- messagepipelineResult
- pipeline partial results
-
-
Method Details
-
getPipelineResult
Optionally returns the result of the pipeline that caused the exception. Typically contains both the results of the successful statements but also the exceptions of the incorrect ones.- Returns:
- result of the pipeline
-