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.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java b/src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java
index c82e0fc..45819bf 100644
--- a/src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java
+++ b/src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java
@@ -7,9 +7,10 @@ public class TargetNotFoundException extends RuntimeException {
/**
* Constructs a new target not found exception for the specified method stub.
+ * @param type the type of element being sought (class, method, etc.)
* @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));
+ public TargetNotFoundException(String type, String stub) {
+ super(String.format("Could not find target %s %s.", type, stub));
}
}