diff options
Diffstat (limited to 'src/main/java/ftbsc/lll/exceptions')
-rw-r--r-- | src/main/java/ftbsc/lll/exceptions/NotAProxyException.java | 6 | ||||
-rw-r--r-- | src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/ftbsc/lll/exceptions/NotAProxyException.java b/src/main/java/ftbsc/lll/exceptions/NotAProxyException.java index 4c2eeaa..1ce3c0f 100644 --- a/src/main/java/ftbsc/lll/exceptions/NotAProxyException.java +++ b/src/main/java/ftbsc/lll/exceptions/NotAProxyException.java @@ -1,8 +1,8 @@ package ftbsc.lll.exceptions; import ftbsc.lll.processor.annotations.Find; -import ftbsc.lll.proxies.FieldProxy; -import ftbsc.lll.proxies.MethodProxy; +import ftbsc.lll.proxies.impl.FieldProxy; +import ftbsc.lll.proxies.impl.MethodProxy; /** * Thrown when a method is annotated with {@link Find} but does not @@ -16,6 +16,6 @@ public class NotAProxyException extends RuntimeException { * @param method the name of the method wrongly annotated */ public NotAProxyException(String parent, String method) { - super(String.format("Annotated method %s::%s does not return a proxy!", parent, method)); + super(String.format("Annotated field %s::%s does not return a proxy!", parent, method)); } } 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)); } } |