-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David Kornel <[email protected]>
- Loading branch information
Showing
30 changed files
with
1,406 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
test-frame-common/src/main/java/io/skodjob/testframe/clients/KubeClient.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
43 changes: 43 additions & 0 deletions
43
test-frame-common/src/main/java/io/skodjob/testframe/clients/KubeClusterException.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,43 @@ | ||
/* | ||
* Copyright Skodjob authors. | ||
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
*/ | ||
package io.skodjob.testframe.clients; | ||
|
||
|
||
import io.skodjob.testframe.executor.ExecResult; | ||
|
||
public class KubeClusterException extends RuntimeException { | ||
public final ExecResult result; | ||
|
||
public KubeClusterException(ExecResult result, String s) { | ||
super(s); | ||
this.result = result; | ||
} | ||
|
||
public KubeClusterException(Throwable cause) { | ||
super(cause); | ||
this.result = null; | ||
} | ||
|
||
public static class NotFound extends KubeClusterException { | ||
|
||
public NotFound(ExecResult result, String s) { | ||
super(result, s); | ||
} | ||
} | ||
|
||
public static class AlreadyExists extends KubeClusterException { | ||
|
||
public AlreadyExists(ExecResult result, String s) { | ||
super(result, s); | ||
} | ||
} | ||
|
||
public static class InvalidResource extends KubeClusterException { | ||
|
||
public InvalidResource(ExecResult result, String s) { | ||
super(result, s); | ||
} | ||
} | ||
} |
Oops, something went wrong.