Package io.lettuce.core.dynamic.batch
Class BatchException
- 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
All Methods Instance Methods Concrete Methods 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 Detail
-
BatchException
public BatchException(List<RedisCommand<?,?,?>> failedCommands)
Create a newBatchException
.- Parameters:
failedCommands
-List
of failedRedisCommand
s.
-
-
Method Detail
-
getFailedCommands
public List<RedisCommand<?,?,?>> getFailedCommands()
- Returns:
- the failed commands.
-
-