java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.lettuce.core.RedisException
io.lettuce.core.RedisCommandExecutionException
io.lettuce.core.dynamic.batch.BatchException
- All Implemented Interfaces:
Serializable
public class BatchException extends RedisCommandExecutionException
Batch exception to collect multiple errors from batched command execution.
Commands that fail during the batch cause a BatchException while non-failed commands remain executed successfully.
- Since:
- 5.0
- Author:
- Mark Paluch
- See Also:
BatchExecutor,BatchSize,CommandBatching, Serialized Form
-
Constructor Summary
Constructors Constructor Description BatchException(List<RedisCommand<?,?,?>> failedCommands)Create a newBatchException. -
Method Summary
Modifier and Type Method Description List<RedisCommand<?,?,?>>getFailedCommands()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BatchException
Create a newBatchException.- Parameters:
failedCommands-Listof failedRedisCommands.
-
-
Method Details
-
getFailedCommands
- Returns:
- the failed commands.
-