better error message when a user passes null to a method that parses its value

This commit is contained in:
Adrian Cole 2011-08-04 11:24:07 +02:00
parent e2397d6302
commit 232b58203f
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }
} }