summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/exceptions
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-02-27 16:45:09 +0100
committer zaaarf <zaaarf@proton.me>2023-02-27 16:45:09 +0100
commitcf537274eeeca41b4c097371e83afef1c2c544ca (patch)
tree41fd3058b0e24572fb179c1a74607f87b13566b6 /src/main/java/ftbsc/lll/exceptions
parentea69f93028898f6042679fb88dd1da9f848a307e (diff)
chore: renamed exception package to exceptions
Diffstat (limited to 'src/main/java/ftbsc/lll/exceptions')
-rw-r--r--src/main/java/ftbsc/lll/exceptions/InjectionException.java18
-rw-r--r--src/main/java/ftbsc/lll/exceptions/InstructionMismatchException.java19
-rw-r--r--src/main/java/ftbsc/lll/exceptions/PatternNotFoundException.java18
3 files changed, 55 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/exceptions/InjectionException.java b/src/main/java/ftbsc/lll/exceptions/InjectionException.java
new file mode 100644
index 0000000..d8809dd
--- /dev/null
+++ b/src/main/java/ftbsc/lll/exceptions/InjectionException.java
@@ -0,0 +1,18 @@
+package ftbsc.lll.exceptions;
+
+/**
+ * Thrown when the injection of a patch fails.
+ */
+public class InjectionException extends RuntimeException {
+ public InjectionException(String message) {
+ super(message);
+ }
+
+ public InjectionException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public InjectionException(Throwable cause) {
+ super(cause);
+ }
+} \ No newline at end of file
diff --git a/src/main/java/ftbsc/lll/exceptions/InstructionMismatchException.java b/src/main/java/ftbsc/lll/exceptions/InstructionMismatchException.java
new file mode 100644
index 0000000..7f3fe83
--- /dev/null
+++ b/src/main/java/ftbsc/lll/exceptions/InstructionMismatchException.java
@@ -0,0 +1,19 @@
+package ftbsc.lll.exceptions;
+
+/**
+ * Thrown when attempting to build an InstructionSequence between two
+ * unconnected nodes.
+ */
+public class InstructionMismatchException extends RuntimeException {
+ public InstructionMismatchException(String message) {
+ super(message);
+ }
+
+ public InstructionMismatchException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public InstructionMismatchException(Throwable cause) {
+ super(cause);
+ }
+}
diff --git a/src/main/java/ftbsc/lll/exceptions/PatternNotFoundException.java b/src/main/java/ftbsc/lll/exceptions/PatternNotFoundException.java
new file mode 100644
index 0000000..5e7401c
--- /dev/null
+++ b/src/main/java/ftbsc/lll/exceptions/PatternNotFoundException.java
@@ -0,0 +1,18 @@
+package ftbsc.lll.exceptions;
+
+/**
+ * Thrown when failing to find a pattern
+ */
+public class PatternNotFoundException extends RuntimeException {
+ public PatternNotFoundException(String message) {
+ super(message);
+ }
+
+ public PatternNotFoundException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public PatternNotFoundException(Throwable cause) {
+ super(cause);
+ }
+}