aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/exceptions
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-04 15:18:21 +0100
committer zaaarf <zaaarf@proton.me>2023-03-04 15:18:21 +0100
commita3b33e66e8f3fef28058281fa5607118e04e7614 (patch)
tree3036eb70bdef3a11952b47dfa6c4654a8f970a72 /src/main/java/ftbsc/lll/exceptions
parent8983a271f851f0a369cff9bb01010f8d5ff58e2f (diff)
doc: added missing javadocs0.3.2
Diffstat (limited to 'src/main/java/ftbsc/lll/exceptions')
-rw-r--r--src/main/java/ftbsc/lll/exceptions/InjectionException.java17
-rw-r--r--src/main/java/ftbsc/lll/exceptions/InstructionMismatchException.java18
-rw-r--r--src/main/java/ftbsc/lll/exceptions/PatternNotFoundException.java14
3 files changed, 47 insertions, 2 deletions
diff --git a/src/main/java/ftbsc/lll/exceptions/InjectionException.java b/src/main/java/ftbsc/lll/exceptions/InjectionException.java
index d8809dd..3695a92 100644
--- a/src/main/java/ftbsc/lll/exceptions/InjectionException.java
+++ b/src/main/java/ftbsc/lll/exceptions/InjectionException.java
@@ -4,15 +4,30 @@ package ftbsc.lll.exceptions;
* Thrown when the injection of a patch fails.
*/
public class InjectionException extends RuntimeException {
+
+ /**
+ * Constructs a new injection exception with the specified detail message.
+ * @param message the detail message
+ */
public InjectionException(String message) {
super(message);
}
+ /**
+ * Constructs a new injection exception with the specified detail message and cause.
+ * @param message the detail message
+ * @param cause the cause, may be null (indicating nonexistent or unknown cause)
+ */
public InjectionException(String message, Throwable cause) {
super(message, cause);
}
+ /**
+ * Constructs a new injection exception with the specified cause and a
+ * detail message of {@code (cause==null ? null : cause.toString())}
+ * @param cause the cause, may be null (indicating nonexistent or unknown 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
index b9e0d05..33c4b35 100644
--- a/src/main/java/ftbsc/lll/exceptions/InstructionMismatchException.java
+++ b/src/main/java/ftbsc/lll/exceptions/InstructionMismatchException.java
@@ -1,18 +1,34 @@
package ftbsc.lll.exceptions;
+import ftbsc.lll.tools.InsnSequence;
+
/**
- * Thrown when attempting to build an {@link ftbsc.lll.tools.InsnSequence} between two
+ * Thrown when attempting to build an {@link InsnSequence} between two
* unconnected nodes.
*/
public class InstructionMismatchException extends RuntimeException {
+ /**
+ * Constructs a new instruction mismatch exception with the specified detail message.
+ * @param message the detail message
+ */
public InstructionMismatchException(String message) {
super(message);
}
+ /**
+ * Constructs a new instruction mismatch exception with the specified detail message and cause.
+ * @param message the detail message
+ * @param cause the cause, may be null (indicating nonexistent or unknown cause)
+ */
public InstructionMismatchException(String message, Throwable cause) {
super(message, cause);
}
+ /**
+ * Constructs a new instruction mismatch exception with the specified cause and a
+ * detail message of {@code (cause==null ? null : cause.toString())}
+ * @param cause the cause, may be null (indicating nonexistent or unknown 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
index d84fefd..2d50623 100644
--- a/src/main/java/ftbsc/lll/exceptions/PatternNotFoundException.java
+++ b/src/main/java/ftbsc/lll/exceptions/PatternNotFoundException.java
@@ -4,14 +4,28 @@ package ftbsc.lll.exceptions;
* Thrown when failing to find a pattern.
*/
public class PatternNotFoundException extends RuntimeException {
+ /**
+ * Constructs a new pattern not found exception with the specified detail message.
+ * @param message the detail message
+ */
public PatternNotFoundException(String message) {
super(message);
}
+ /**
+ * Constructs a new pattern not found exception with the specified detail message and cause.
+ * @param message the detail message
+ * @param cause the cause, may be null (indicating nonexistent or unknown cause)
+ */
public PatternNotFoundException(String message, Throwable cause) {
super(message, cause);
}
+ /**
+ * Constructs a new pattern not found exception with the specified cause and a
+ * detail message of {@code (cause==null ? null : cause.toString())}
+ * @param cause the cause, may be null (indicating nonexistent or unknown cause)
+ */
public PatternNotFoundException(Throwable cause) {
super(cause);
}