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 Details

    • RedisPipelineException

      public RedisPipelineException(@Nullable String msg, @Nullable Throwable cause, List<Object> pipelineResult)
      Constructs a new RedisPipelineException instance.
      Parameters:
      msg - the message
      cause - the cause
      pipelineResult - the pipeline result
    • RedisPipelineException

      public RedisPipelineException(Exception cause, List<Object> pipelineResult)
      Constructs a new RedisPipelineException instance using a default message.
      Parameters:
      cause - the cause
      pipelineResult - the pipeline result
    • RedisPipelineException

      public RedisPipelineException(Exception cause)
      Constructs a new RedisPipelineException instance using a default message and an empty pipeline result list.
      Parameters:
      cause - the cause
    • RedisPipelineException

      public RedisPipelineException(String msg, List<Object> pipelineResult)
      Constructs a new RedisPipelineException instance.
      Parameters:
      msg - message
      pipelineResult - pipeline partial results
  • Method Details

    • getPipelineResult

      public List<Object> 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