aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/exceptions/AmbiguousDefinitionException.java
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-08 15:37:17 +0100
committer zaaarf <zaaarf@proton.me>2023-03-08 15:37:17 +0100
commitf6539d4a078e4cc37a56b9cdb548ba6a61a73b93 (patch)
tree47dfff577548d71e84e13b21120a1804626de8fe /src/main/java/ftbsc/lll/exceptions/AmbiguousDefinitionException.java
parent51d9375e0bf42cc9342db9ee5f676988026b141b (diff)
feat: initial implementation of new system
- multiple injectors/target - removed strict limitation of one patch per class - made finders far smarter - added boolean for obfuscation environment (currently never changed from default)
Diffstat (limited to 'src/main/java/ftbsc/lll/exceptions/AmbiguousDefinitionException.java')
-rw-r--r--src/main/java/ftbsc/lll/exceptions/AmbiguousDefinitionException.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/exceptions/AmbiguousDefinitionException.java b/src/main/java/ftbsc/lll/exceptions/AmbiguousDefinitionException.java
new file mode 100644
index 0000000..1befaa8
--- /dev/null
+++ b/src/main/java/ftbsc/lll/exceptions/AmbiguousDefinitionException.java
@@ -0,0 +1,25 @@
+package ftbsc.lll.exceptions;
+
+/**
+ * Thrown when the processor finds multiple methods matching the
+ * given criteria.
+ */
+public class AmbiguousDefinitionException extends RuntimeException {
+
+ /**
+ * Constructs a new ambiguous definition exception with the specified detail message.
+ * @param message the detail message
+ */
+ public AmbiguousDefinitionException(String message) {
+ super(message);
+ }
+
+ /**
+ * Constructs a new ambiguous definition 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 AmbiguousDefinitionException(String message, Throwable cause) {
+ super(message, cause);
+ }
+}