forked from loafle/openapi-generator-original
Merge pull request #1027 from adamholdenyall/patch-3
Catch all exceptions on Deserialize
This commit is contained in:
@@ -235,7 +235,7 @@ namespace {{packageName}}.Client
|
||||
{
|
||||
return JsonConvert.DeserializeObject(content, type);
|
||||
}
|
||||
catch (IOException e)
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new ApiException(500, e.Message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user