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
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 SummaryConstructorsConstructorDescriptionRedisPipelineException(Exception cause) Constructs a newRedisPipelineExceptioninstance using a default message and an empty pipeline result list.RedisPipelineException(Exception cause, List<Object> pipelineResult) Constructs a newRedisPipelineExceptioninstance using a default message.RedisPipelineException(String msg, Throwable cause, List<Object> pipelineResult) Constructs a newRedisPipelineExceptioninstance.RedisPipelineException(String msg, List<Object> pipelineResult) Constructs a newRedisPipelineExceptioninstance.
- 
Method SummaryModifier and TypeMethodDescriptionOptionally returns the result of the pipeline that caused the exception.Methods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
RedisPipelineExceptionpublic RedisPipelineException(@Nullable String msg, @Nullable Throwable cause, List<Object> pipelineResult) Constructs a newRedisPipelineExceptioninstance.- Parameters:
- msg- the message
- cause- the cause
- pipelineResult- the pipeline result
 
- 
RedisPipelineExceptionConstructs a newRedisPipelineExceptioninstance using a default message.- Parameters:
- cause- the cause
- pipelineResult- the pipeline result
 
- 
RedisPipelineExceptionConstructs a newRedisPipelineExceptioninstance using a default message and an empty pipeline result list.- Parameters:
- cause- the cause
 
- 
RedisPipelineExceptionConstructs a newRedisPipelineExceptioninstance.- Parameters:
- msg- message
- pipelineResult- pipeline partial results
 
 
- 
- 
Method Details- 
getPipelineResultOptionally 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
 
 
-