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 @@ -356,17 +356,16 @@ partial void ProcessCreateAnimationTaskResponseContent(
__exception_400 = __ex;
}

throw new global::Meshy.ApiException(

throw global::Meshy.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 == 401)
Expand All @@ -389,17 +388,16 @@ partial void ProcessCreateAnimationTaskResponseContent(
__exception_401 = __ex;
}

throw new global::Meshy.ApiException(

throw global::Meshy.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
statusCode: __response.StatusCode)
{
ResponseBody = __content_401,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content_401,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
//
if ((int)__response.StatusCode == 402)
Expand All @@ -422,17 +420,16 @@ partial void ProcessCreateAnimationTaskResponseContent(
__exception_402 = __ex;
}

throw new global::Meshy.ApiException(

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

throw new global::Meshy.ApiException(

throw global::Meshy.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 == 429)
Expand All @@ -488,17 +484,16 @@ partial void ProcessCreateAnimationTaskResponseContent(
__exception_429 = __ex;
}

throw new global::Meshy.ApiException(

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

if (__effectiveReadResponseAsString)
Expand Down Expand Up @@ -532,17 +527,15 @@ partial void ProcessCreateAnimationTaskResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Meshy.ApiException(
throw global::Meshy.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 @@ -579,17 +572,15 @@ partial void ProcessCreateAnimationTaskResponseContent(
{
}

throw new global::Meshy.ApiException(
throw global::Meshy.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 @@ -342,17 +342,15 @@ await DeleteAnimationTaskAsResponseAsync(
}
catch (global::System.Exception __ex)
{
throw new global::Meshy.ApiException(
throw global::Meshy.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 @@ -380,17 +378,15 @@ await DeleteAnimationTaskAsResponseAsync(
{
}

throw new global::Meshy.ApiException(
throw global::Meshy.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 @@ -345,17 +345,16 @@ partial void ProcessGetAnimationTaskResponseContent(
__exception_404 = __ex;
}

throw new global::Meshy.ApiException(

throw global::Meshy.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 (__effectiveReadResponseAsString)
Expand Down Expand Up @@ -389,17 +388,15 @@ partial void ProcessGetAnimationTaskResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Meshy.ApiException(
throw global::Meshy.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 @@ -436,17 +433,15 @@ partial void ProcessGetAnimationTaskResponseContent(
{
}

throw new global::Meshy.ApiException(
throw global::Meshy.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