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));
|
method));
|
||||||
return returnVal;
|
return returnVal;
|
||||||
} catch (NullPointerException e) {
|
} 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);
|
method), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue