Skip to content

Commit

Permalink
(refactor): add custom exception
Browse files Browse the repository at this point in the history
as requested in:

* opendevstack#1108 (comment)
  • Loading branch information
serverhorror committed May 13, 2024
1 parent 9a16363 commit 2ebb1eb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/ods/orchestration/phases/DeployOdsComponent.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class DeployOdsComponent {
}

if (podData == null) {
throw new RuntimeException(
throw new DeployOdsComponentException(
"Error: Could not find 'running' pod(s) with label"
+ "'${deploymentMean.selector}'"
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.ods.orchestration.phases

class DeployOdsComponentException extends RuntimeException {

DeployOdsComponentException() {
}

DeployOdsComponentException(String message) {
super(message)
}

DeployOdsComponentException(String message, Throwable cause) {
super(message, cause)
}

DeployOdsComponentException(Throwable cause) {
super(cause)
}
}

0 comments on commit 2ebb1eb

Please sign in to comment.