-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MO] - restrict KRaft for Kafka 2.8.1 (#25)
* [MO] - restrict KRaft for Kafka 2.8.1 Signed-off-by: morsak <[email protected]> * boxed exception Signed-off-by: morsak <[email protected]>
- Loading branch information
Showing
3 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/java/io/strimzi/test/container/UnsupportedKraftKafkaVersionException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright Strimzi authors. | ||
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
*/ | ||
package io.strimzi.test.container; | ||
|
||
/** | ||
* Provides a handler, when user specifies unsupported Kafka version with Kraft mode enabled | ||
* {@link StrimziKafkaContainer#withKraft()}. | ||
*/ | ||
public class UnsupportedKraftKafkaVersionException extends RuntimeException { | ||
|
||
/** | ||
* {@link UnsupportedKraftKafkaVersionException} used for handling situation, when | ||
* user specifies unsupported Kafka version with Kraft mode enabled. | ||
* | ||
* @param message specific message to throw | ||
*/ | ||
public UnsupportedKraftKafkaVersionException(String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* {@link UnsupportedKraftKafkaVersionException} used for handling situation, when | ||
* user specifies unsupported Kafka version with Kraft mode enabled. | ||
* | ||
* @param cause specific cause to throw | ||
*/ | ||
public UnsupportedKraftKafkaVersionException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters