Class DuplicateAttributeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.servicetalk.client.api.partition.DuplicateAttributeException
-
- All Implemented Interfaces:
java.io.Serializable
public final class DuplicateAttributeException extends java.lang.RuntimeException
Indicates that a duplicate value was added while constructing aPartitionAttributes
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DuplicateAttributeException(PartitionAttributes.Key key, java.lang.String msg)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartitionAttributes.Key
getKey()
Get thePartitionAttributes.Key
which corresponds to the exception.
-
-
-
Constructor Detail
-
DuplicateAttributeException
public DuplicateAttributeException(PartitionAttributes.Key key, java.lang.String msg)
Create a new instance.- Parameters:
key
- The key for which the duplicate was detected.msg
- The textual description of the exception.
-
-
Method Detail
-
getKey
public PartitionAttributes.Key getKey()
Get thePartitionAttributes.Key
which corresponds to the exception.- Returns:
- The key.
-
-