diff options
author | zaaarf <zaaarf@proton.me> | 2023-02-07 14:20:26 +0100 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-02-07 14:20:26 +0100 |
commit | 764ff58eaa6fbfbf3e3809e67c23fcccacfa68eb (patch) | |
tree | cff32928c0b36b7b899fe44d549478007e16daf6 /src/main/java/ftbsc/lll/exception | |
parent | 809939c50264758ec4f30d58c2557f4f876f9b46 (diff) |
feat: implemented ASM pattern matcher
Diffstat (limited to 'src/main/java/ftbsc/lll/exception')
-rw-r--r-- | src/main/java/ftbsc/lll/exception/InstructionMismatchException.java | 19 | ||||
-rw-r--r-- | src/main/java/ftbsc/lll/exception/PatternNotFoundException.java | 18 |
2 files changed, 37 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/exception/InstructionMismatchException.java b/src/main/java/ftbsc/lll/exception/InstructionMismatchException.java new file mode 100644 index 0000000..7dda1e6 --- /dev/null +++ b/src/main/java/ftbsc/lll/exception/InstructionMismatchException.java @@ -0,0 +1,19 @@ +package ftbsc.lll.exception; + +/** + * 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/exception/PatternNotFoundException.java b/src/main/java/ftbsc/lll/exception/PatternNotFoundException.java new file mode 100644 index 0000000..e6d75b3 --- /dev/null +++ b/src/main/java/ftbsc/lll/exception/PatternNotFoundException.java @@ -0,0 +1,18 @@ +package ftbsc.lll.exception; + +/** + * 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); + } +} |