summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java')
-rw-r--r--src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java b/src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java
new file mode 100644
index 0000000..c82e0fc
--- /dev/null
+++ b/src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java
@@ -0,0 +1,15 @@
+package ftbsc.lll.exceptions;
+
+/**
+ * Thrown upon failure to find an existing method from a stub.
+ */
+public class TargetNotFoundException extends RuntimeException {
+
+ /**
+ * Constructs a new target not found exception for the specified method stub.
+ * @param stub the stub's name (and descriptor possibly)
+ */
+ public TargetNotFoundException(String stub) {
+ super(String.format("Could not find member corresponding to stub: %s.", stub));
+ }
+}