[kotlin][client] update request exceptions (#11065)

This commit is contained in:
Bruno Coelho
2021-12-11 13:48:59 +00:00
committed by GitHub
parent 0236f84c11
commit 3247903caa
36 changed files with 1410 additions and 1115 deletions

View File

@@ -20,6 +20,8 @@
package org.openapitools.client.apis
import java.io.IOException
import org.openapitools.client.models.ModelWithEnumPropertyHavingDefault
import org.openapitools.client.infrastructure.ApiClient
@@ -47,12 +49,14 @@ class DefaultApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath
*
*
* @return ModelWithEnumPropertyHavingDefault
* @throws IllegalStateException If the request is not correctly configured
* @throws IOException Rethrows the OkHttp execute method exception
* @throws UnsupportedOperationException If the API returns an informational or redirection response
* @throws ClientException If the API returns a client error response
* @throws ServerException If the API returns a server error response
*/
@Suppress("UNCHECKED_CAST")
@Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class)
@Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
fun operation() : ModelWithEnumPropertyHavingDefault {
val localVarResponse = operationWithHttpInfo()
@@ -75,12 +79,11 @@ class DefaultApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath
*
*
* @return ApiInfrastructureResponse<ModelWithEnumPropertyHavingDefault?>
* @throws UnsupportedOperationException If the API returns an informational or redirection response
* @throws ClientException If the API returns a client error response
* @throws ServerException If the API returns a server error response
* @throws IllegalStateException If the request is not correctly configured
* @throws IOException Rethrows the OkHttp execute method exception
*/
@Suppress("UNCHECKED_CAST")
@Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class)
@Throws(IllegalStateException::class, IOException::class)
fun operationWithHttpInfo() : ApiInfrastructureResponse<ModelWithEnumPropertyHavingDefault?> {
val localVariableConfig = operationRequestConfig()