mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-08 08:30:56 +00:00
Merge pull request #1027 from adamholdenyall/patch-3
Catch all exceptions on Deserialize
This commit is contained in:
commit
bc528ef928
@ -235,7 +235,7 @@ namespace {{packageName}}.Client
|
||||
{
|
||||
return JsonConvert.DeserializeObject(content, type);
|
||||
}
|
||||
catch (IOException e)
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new ApiException(500, e.Message);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user