throw volley error on body post null [android-volley]

This commit is contained in:
Shyri Villar
2015-11-07 13:17:19 +01:00
parent f5aba6d0a5
commit b55f8802ac

View File

@@ -55,7 +55,8 @@ public class {{classname}} {
{{#allParams}}{{#required}}
// verify the required parameter '{{paramName}}' is set
if ({{paramName}} == null) {
throw new ApiException(400, "Missing the required parameter '{{paramName}}' when calling {{nickname}}");
VolleyError error = new VolleyError("Missing the required parameter '{{paramName}}' when calling {{nickname}}",
new ApiException(400, "Missing the required parameter '{{paramName}}' when calling {{nickname}}"));
}
{{/required}}{{/allParams}}