-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix code smell and avoid cycle in exception use
- Loading branch information
Showing
4 changed files
with
23 additions
and
21 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
11 changes: 11 additions & 0 deletions
11
crd-generator/cli/src/main/java/io/fabric8/crd/generator/cli/CRDGeneratorCliException.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,11 @@ | ||
package io.fabric8.crd.generator.cli; | ||
|
||
class CRDGeneratorCliException extends RuntimeException { | ||
CRDGeneratorCliException(String message) { | ||
super(message); | ||
} | ||
|
||
CRDGeneratorCliException(String message, Throwable cause) { | ||
super(message, 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
11 changes: 11 additions & 0 deletions
11
.../cli/src/main/java/io/fabric8/crd/generator/cli/CustomResourceClassNotFoundException.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,11 @@ | ||
package io.fabric8.crd.generator.cli; | ||
|
||
/** | ||
* Exception to indicate that no custom resource classes have been retained after scanning and | ||
* filtering. | ||
*/ | ||
class CustomResourceClassNotFoundException extends CRDGeneratorCliException { | ||
CustomResourceClassNotFoundException() { | ||
super("No Custom Resource class retained after filtering"); | ||
} | ||
} |