Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -371,17 +371,16 @@ partial void ProcessAdminCreateDeveloperKeyResponseContent(
__exception_400 = __ex;
}

throw new global::DeepL.ApiException(

throw global::DeepL.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
statusCode: __response.StatusCode)
{
ResponseBody = __content_400,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content_400,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
Expand All @@ -404,17 +403,16 @@ partial void ProcessAdminCreateDeveloperKeyResponseContent(
__exception_403 = __ex;
}

throw new global::DeepL.ApiException(

throw global::DeepL.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
statusCode: __response.StatusCode)
{
ResponseBody = __content_403,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content_403,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
Expand All @@ -437,17 +435,16 @@ partial void ProcessAdminCreateDeveloperKeyResponseContent(
__exception_404 = __ex;
}

throw new global::DeepL.ApiException(

throw global::DeepL.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
statusCode: __response.StatusCode)
{
ResponseBody = __content_404,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content_404,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
Expand All @@ -470,17 +467,16 @@ partial void ProcessAdminCreateDeveloperKeyResponseContent(
__exception_500 = __ex;
}

throw new global::DeepL.ApiException(

throw global::DeepL.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
statusCode: __response.StatusCode)
{
ResponseBody = __content_500,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content_500,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}

if (__effectiveReadResponseAsString)
Expand Down Expand Up @@ -514,17 +510,15 @@ partial void ProcessAdminCreateDeveloperKeyResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::DeepL.ApiException(
throw global::DeepL.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}
else
Expand Down Expand Up @@ -561,17 +555,15 @@ partial void ProcessAdminCreateDeveloperKeyResponseContent(
{
}

throw new global::DeepL.ApiException(
throw global::DeepL.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,17 +371,16 @@ partial void ProcessAdminDeactivateDeveloperKeyResponseContent(
__exception_400 = __ex;
}

throw new global::DeepL.ApiException(

throw global::DeepL.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
statusCode: __response.StatusCode)
{
ResponseBody = __content_400,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content_400,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
Expand All @@ -404,17 +403,16 @@ partial void ProcessAdminDeactivateDeveloperKeyResponseContent(
__exception_403 = __ex;
}

throw new global::DeepL.ApiException(

throw global::DeepL.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
statusCode: __response.StatusCode)
{
ResponseBody = __content_403,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content_403,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
Expand All @@ -437,17 +435,16 @@ partial void ProcessAdminDeactivateDeveloperKeyResponseContent(
__exception_404 = __ex;
}

throw new global::DeepL.ApiException(

throw global::DeepL.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
statusCode: __response.StatusCode)
{
ResponseBody = __content_404,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content_404,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
Expand All @@ -470,17 +467,16 @@ partial void ProcessAdminDeactivateDeveloperKeyResponseContent(
__exception_500 = __ex;
}

throw new global::DeepL.ApiException(

throw global::DeepL.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
statusCode: __response.StatusCode)
{
ResponseBody = __content_500,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content_500,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}

if (__effectiveReadResponseAsString)
Expand Down Expand Up @@ -514,17 +510,15 @@ partial void ProcessAdminDeactivateDeveloperKeyResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::DeepL.ApiException(
throw global::DeepL.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}
else
Expand Down Expand Up @@ -561,17 +555,15 @@ partial void ProcessAdminDeactivateDeveloperKeyResponseContent(
{
}

throw new global::DeepL.ApiException(
throw global::DeepL.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}

Expand Down
Loading