Class NoShardAvailableException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.streamnative.oxia.client.shard.NoShardAvailableException
All Implemented Interfaces:
Serializable

public class NoShardAvailableException extends RuntimeException
A leader has not been assigned to the shard that maps to the key.
See Also:
  • Constructor Details

    • NoShardAvailableException

      public NoShardAvailableException(@NonNull @NonNull String key)
      Creates an instance of the exception.
      Parameters:
      key - The key specified in the call.
    • NoShardAvailableException

      public NoShardAvailableException(long shardId)
      Creates an instance of the exception.
      Parameters:
      shardId - The shard id specified in the call.