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 @@ -331,17 +331,15 @@ await DeleteTemplateAsResponseAsync(
}
catch (global::System.Exception __ex)
{
throw new global::Shotstack.ApiException(
throw global::Shotstack.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 @@ -369,17 +367,15 @@ await DeleteTemplateAsResponseAsync(
{
}

throw new global::Shotstack.ApiException(
throw global::Shotstack.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
24 changes: 10 additions & 14 deletions src/libs/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -345,17 +345,15 @@ partial void ProcessGetRenderResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Shotstack.ApiException(
throw global::Shotstack.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 @@ -392,17 +390,15 @@ partial void ProcessGetRenderResponseContent(
{
}

throw new global::Shotstack.ApiException(
throw global::Shotstack.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
24 changes: 10 additions & 14 deletions src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplate.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -345,17 +345,15 @@ partial void ProcessGetTemplateResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Shotstack.ApiException(
throw global::Shotstack.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 @@ -392,17 +390,15 @@ partial void ProcessGetTemplateResponseContent(
{
}

throw new global::Shotstack.ApiException(
throw global::Shotstack.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
24 changes: 10 additions & 14 deletions src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplates.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,17 +336,15 @@ partial void ProcessGetTemplatesResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Shotstack.ApiException(
throw global::Shotstack.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 @@ -383,17 +381,15 @@ partial void ProcessGetTemplatesResponseContent(
{
}

throw new global::Shotstack.ApiException(
throw global::Shotstack.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
24 changes: 10 additions & 14 deletions src/libs/Shotstack/Generated/Shotstack.EditClient.PostRender.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -378,17 +378,15 @@ partial void ProcessPostRenderResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Shotstack.ApiException(
throw global::Shotstack.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 @@ -425,17 +423,15 @@ partial void ProcessPostRenderResponseContent(
{
}

throw new global::Shotstack.ApiException(
throw global::Shotstack.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
24 changes: 10 additions & 14 deletions src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplate.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -360,17 +360,15 @@ partial void ProcessPostTemplateResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Shotstack.ApiException(
throw global::Shotstack.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 @@ -407,17 +405,15 @@ partial void ProcessPostTemplateResponseContent(
{
}

throw new global::Shotstack.ApiException(
throw global::Shotstack.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 @@ -358,17 +358,15 @@ partial void ProcessPostTemplateRenderResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Shotstack.ApiException(
throw global::Shotstack.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 @@ -405,17 +403,15 @@ partial void ProcessPostTemplateRenderResponseContent(
{
}

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