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/exceptions/InjectionException.java | 18 ++++++++++++++++++ .../lll/exceptions/InstructionMismatchException.java | 19 +++++++++++++++++++ .../lll/exceptions/PatternNotFoundException.java | 18 ++++++++++++++++++ 3 files changed, 55 insertions(+) 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 (limited to 'src/main/java/ftbsc/lll/exceptions') 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); + } +} -- cgit v1.2.3-56-ga3b1