25df317b5641bd20f4611b7bd0c0dd9da0e5854f
[demos/kafka/chat] / src / main / java / de / juplo / kafka / chat / backend / domain / exceptions / ShardNotOwnedException.java
1 package de.juplo.kafka.chat.backend.domain.exceptions;
2
3 import lombok.Getter;
4
5
6 public class ShardNotOwnedException extends IllegalStateException
7 {
8   @Getter
9   private final int shard;
10
11
12   public ShardNotOwnedException(int shard)
13   {
14     super("This instance does not own the shard " + shard);
15     this.shard = shard;
16   }
17 }