mirror of https://github.com/apache/jclouds.git
better error message when a user passes null to a method that parses its value
This commit is contained in:
parent
e2397d6302
commit
232b58203f
|
@ -693,7 +693,7 @@ public class RestAnnotationProcessor<T> {
|
|||
method));
|
||||
return returnVal;
|
||||
} catch (NullPointerException e) {
|
||||
throw new IllegalArgumentException(String.format("argument at indexes %s on method %s", map.keySet(),
|
||||
throw new IllegalArgumentException(String.format("illegal argument in [%s] for method %s", argsToParse,
|
||||
method), e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue