aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/exceptions/AmbiguousMappingException.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/ftbsc/lll/exceptions/AmbiguousMappingException.java')
-rw-r--r--src/main/java/ftbsc/lll/exceptions/AmbiguousMappingException.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/exceptions/AmbiguousMappingException.java b/src/main/java/ftbsc/lll/exceptions/AmbiguousMappingException.java
new file mode 100644
index 0000000..794759a
--- /dev/null
+++ b/src/main/java/ftbsc/lll/exceptions/AmbiguousMappingException.java
@@ -0,0 +1,27 @@
+package ftbsc.lll.exceptions;
+
+import ftbsc.lll.mapper.IMapper;
+
+/**
+ * Thrown when a given {@link IMapper} cannot uniquely identify a mapping with
+ * the given data.
+ */
+public class AmbiguousMappingException extends RuntimeException {
+
+ /**
+ * Constructs a new ambiguous mapping definition exception with the specified detail message.
+ * @param message the detail message
+ */
+ public AmbiguousMappingException(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 AmbiguousMappingException(String message, Throwable cause) {
+ super(message, cause);
+ }
+} \ No newline at end of file