-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CMD exec and oc/kubectl commands (#30)
- Loading branch information
Showing
8 changed files
with
1,284 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
src/main/java/io/odh/test/platform/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.odh.test.platform; | ||
|
||
|
||
import io.odh.test.platform.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.