@@ -882,6 +882,7 @@ public <T> T handleResponse(Response response, Type returnType) throws ApiExcept
882882 * @param progressRequestListener Progress request listener
883883 * @return The HTTP call
884884 * @throws ApiException If fail to serialize the request body object
885+ * @throws IOException If fail to serialize the request body object
885886 */
886887 public Call buildCall (String path , String method , List <Pair > queryParams , List <Pair > collectionQueryParams , Object body , Map <String , String > headerParams , Map <String , Object > formParams , String [] authNames , ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException , IOException {
887888 Request request = buildRequest (path , method , queryParams , collectionQueryParams , body , headerParams , formParams , authNames , progressRequestListener );
@@ -903,6 +904,7 @@ public Call buildCall(String path, String method, List<Pair> queryParams, List<P
903904 * @param progressRequestListener Progress request listener
904905 * @return The HTTP request
905906 * @throws ApiException If fail to serialize the request body object
907+ * @throws IOException If fail to serialize the request body object
906908 */
907909 public Request buildRequest (String path , String method , List <Pair > queryParams , List <Pair > collectionQueryParams , Object body , Map <String , String > headerParams , Map <String , Object > formParams , String [] authNames , ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException , IOException {
908910 addOAuthAuthentication (headerParams );
@@ -1040,6 +1042,7 @@ public RequestBody buildRequestBodyFormEncoding(Map<String, Object> formParams)
10401042 * which could contain text fields and file fields.
10411043 *
10421044 * @param formParams Form parameters in the form of Map
1045+ * @throws IOException If fail to serialize the request body object
10431046 * @return RequestBody
10441047 */
10451048 public RequestBody buildRequestBodyMultipart (Map <String , Object > formParams ) throws IOException {
@@ -1064,7 +1067,7 @@ public RequestBody buildRequestBodyMultipart(Map<String, Object> formParams) thr
10641067 *
10651068 * @param file The given file
10661069 * @return The guessed Content-Type
1067- * @throw IOException If is failed
1070+ * @throws IOException If fail to serialize the request body object
10681071 */
10691072 public String guessContentTypeFromFile (byte [] file ) throws IOException {
10701073 String contentType = URLConnection .guessContentTypeFromStream (new ByteArrayInputStream (file ));
@@ -1078,7 +1081,7 @@ public String guessContentTypeFromFile(byte[] file) throws IOException {
10781081
10791082 /**
10801083 * Request OAuth token
1081- @throw ApiException If authorization is failed
1084+ @throws ApiException If authorization is failed
10821085 */
10831086 public void requestToken () throws ApiException {
10841087 try {
0 commit comments