Skip to content

Commit

Permalink
refactor: rename exception (#57)
Browse files Browse the repository at this point in the history
Signed-off-by: Attila Mészáros <[email protected]>
  • Loading branch information
csviri authored Apr 2, 2024
1 parent b055d2b commit 97664a3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package io.csviri.operator.resourceglue;

public class ResourceGlueException extends RuntimeException {

public ResourceGlueException() {}

public ResourceGlueException(String message) {
super(message);
}

public ResourceGlueException(String message, Throwable cause) {
super(message, cause);
}

public ResourceGlueException(Throwable cause) {
super(cause);
}

public ResourceGlueException(String message, Throwable cause, boolean enableSuppression,
boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.csviri.operator.resourceglue.ResourceFlowException;
import io.csviri.operator.resourceglue.ResourceGlueException;
import io.csviri.operator.resourceglue.Utils;
import io.csviri.operator.resourceglue.customresource.glue.Glue;
import io.fabric8.kubernetes.api.model.GenericKubernetesResource;
Expand Down Expand Up @@ -54,7 +54,7 @@ public boolean isMet(DependentResource<GenericKubernetesResource, Glue> dependen
ChronoUnit.MILLIS.between(start, LocalDateTime.now()));
return res;
} catch (ScriptException e) {
throw new ResourceFlowException(e);
throw new ResourceGlueException(e);
}
}

Expand Down

0 comments on commit 97664a3

Please sign in to comment.