Package io.lettuce.core.cluster
Class PartitionSelectorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.lettuce.core.RedisException
-
- io.lettuce.core.cluster.PartitionException
-
- io.lettuce.core.cluster.PartitionSelectorException
-
- All Implemented Interfaces:
Serializable
public class PartitionSelectorException extends PartitionException
Exception thrown when a partition selection fails (slot not covered, no read candidates available).- Since:
- 5.1
- Author:
- Mark Paluch
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PartitionSelectorException(String msg, Partitions partitions)
Create aUnknownPartitionException
with the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Partitions
getPartitions()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PartitionSelectorException
public PartitionSelectorException(String msg, Partitions partitions)
Create aUnknownPartitionException
with the specified detail message.- Parameters:
msg
- the detail message.partitions
- read-only view of the current topology view.
-
-
Method Detail
-
getPartitions
public Partitions getPartitions()
-
-