Skip to content

Commit 97664a3

Browse files
authored
refactor: rename exception (#57)
Signed-off-by: Attila Mészáros <[email protected]>
1 parent b055d2b commit 97664a3

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

src/main/java/io/csviri/operator/resourceglue/ResourceFlowException.java

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package io.csviri.operator.resourceglue;
2+
3+
public class ResourceGlueException extends RuntimeException {
4+
5+
public ResourceGlueException() {}
6+
7+
public ResourceGlueException(String message) {
8+
super(message);
9+
}
10+
11+
public ResourceGlueException(String message, Throwable cause) {
12+
super(message, cause);
13+
}
14+
15+
public ResourceGlueException(Throwable cause) {
16+
super(cause);
17+
}
18+
19+
public ResourceGlueException(String message, Throwable cause, boolean enableSuppression,
20+
boolean writableStackTrace) {
21+
super(message, cause, enableSuppression, writableStackTrace);
22+
}
23+
}

src/main/java/io/csviri/operator/resourceglue/conditions/JavaScripCondition.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import org.slf4j.Logger;
1111
import org.slf4j.LoggerFactory;
1212

13-
import io.csviri.operator.resourceglue.ResourceFlowException;
13+
import io.csviri.operator.resourceglue.ResourceGlueException;
1414
import io.csviri.operator.resourceglue.Utils;
1515
import io.csviri.operator.resourceglue.customresource.glue.Glue;
1616
import io.fabric8.kubernetes.api.model.GenericKubernetesResource;
@@ -54,7 +54,7 @@ public boolean isMet(DependentResource<GenericKubernetesResource, Glue> dependen
5454
ChronoUnit.MILLIS.between(start, LocalDateTime.now()));
5555
return res;
5656
} catch (ScriptException e) {
57-
throw new ResourceFlowException(e);
57+
throw new ResourceGlueException(e);
5858
}
5959
}
6060

0 commit comments

Comments
 (0)