From cf537274eeeca41b4c097371e83afef1c2c544ca Mon Sep 17 00:00:00 2001 From: zaaarf Date: Mon, 27 Feb 2023 16:45:09 +0100 Subject: chore: renamed exception package to exceptions --- .../java/ftbsc/lll/exception/InjectionException.java | 18 ------------------ .../lll/exception/InstructionMismatchException.java | 19 ------------------- .../ftbsc/lll/exception/PatternNotFoundException.java | 18 ------------------ .../java/ftbsc/lll/exceptions/InjectionException.java | 18 ++++++++++++++++++ .../lll/exceptions/InstructionMismatchException.java | 19 +++++++++++++++++++ .../lll/exceptions/PatternNotFoundException.java | 18 ++++++++++++++++++ src/main/java/ftbsc/lll/tools/InsnSequence.java | 2 +- src/main/java/ftbsc/lll/tools/PatternMatcher.java | 2 +- 8 files changed, 57 insertions(+), 57 deletions(-) delete mode 100644 src/main/java/ftbsc/lll/exception/InjectionException.java delete mode 100644 src/main/java/ftbsc/lll/exception/InstructionMismatchException.java delete mode 100644 src/main/java/ftbsc/lll/exception/PatternNotFoundException.java create mode 100644 src/main/java/ftbsc/lll/exceptions/InjectionException.java create mode 100644 src/main/java/ftbsc/lll/exceptions/InstructionMismatchException.java create mode 100644 src/main/java/ftbsc/lll/exceptions/PatternNotFoundException.java diff --git a/src/main/java/ftbsc/lll/exception/InjectionException.java b/src/main/java/ftbsc/lll/exception/InjectionException.java deleted file mode 100644 index c8804f0..0000000 --- a/src/main/java/ftbsc/lll/exception/InjectionException.java +++ /dev/null @@ -1,18 +0,0 @@ -package ftbsc.lll.exception; - -/** - * 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/exception/InstructionMismatchException.java b/src/main/java/ftbsc/lll/exception/InstructionMismatchException.java deleted file mode 100644 index 7dda1e6..0000000 --- a/src/main/java/ftbsc/lll/exception/InstructionMismatchException.java +++ /dev/null @@ -1,19 +0,0 @@ -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 deleted file mode 100644 index e6d75b3..0000000 --- a/src/main/java/ftbsc/lll/exception/PatternNotFoundException.java +++ /dev/null @@ -1,18 +0,0 @@ -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); - } -} 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); + } +} diff --git a/src/main/java/ftbsc/lll/tools/InsnSequence.java b/src/main/java/ftbsc/lll/tools/InsnSequence.java index 1e667f5..3cdacb8 100644 --- a/src/main/java/ftbsc/lll/tools/InsnSequence.java +++ b/src/main/java/ftbsc/lll/tools/InsnSequence.java @@ -1,6 +1,6 @@ package ftbsc.lll.tools; -import ftbsc.lll.exception.InstructionMismatchException; +import ftbsc.lll.exceptions.InstructionMismatchException; import org.objectweb.asm.tree.AbstractInsnNode; import org.objectweb.asm.tree.InsnList; diff --git a/src/main/java/ftbsc/lll/tools/PatternMatcher.java b/src/main/java/ftbsc/lll/tools/PatternMatcher.java index 5719872..a4dc8cb 100644 --- a/src/main/java/ftbsc/lll/tools/PatternMatcher.java +++ b/src/main/java/ftbsc/lll/tools/PatternMatcher.java @@ -1,6 +1,6 @@ package ftbsc.lll.tools; -import ftbsc.lll.exception.PatternNotFoundException; +import ftbsc.lll.exceptions.PatternNotFoundException; import org.objectweb.asm.tree.AbstractInsnNode; import org.objectweb.asm.tree.MethodNode; -- cgit v1.2.3-56-ga3b1