diff --git a/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobArtifacts.g.cs b/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobArtifacts.g.cs
index d74074a..bd1198a 100644
--- a/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobArtifacts.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobArtifacts.g.cs
@@ -352,17 +352,15 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
@@ -666,16 +664,15 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: null,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -710,17 +707,15 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobDetails.g.cs b/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobDetails.g.cs
index 1d5bdc6..6525ccf 100644
--- a/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobDetails.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobDetails.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetBatchJobDetailsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -403,17 +401,15 @@ partial void ProcessGetBatchJobDetailsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobPredictions.g.cs b/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobPredictions.g.cs
index 9a2d12f..9ec252d 100644
--- a/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobPredictions.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobPredictions.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -403,17 +401,15 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.BatchClient.ListBatchJobs.g.cs b/src/libs/HumeAI/Generated/HumeAI.BatchClient.ListBatchJobs.g.cs
index 32ba327..f4a42a5 100644
--- a/src/libs/HumeAI/Generated/HumeAI.BatchClient.ListBatchJobs.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.BatchClient.ListBatchJobs.g.cs
@@ -411,17 +411,15 @@ partial void ProcessListBatchJobsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -458,17 +456,15 @@ partial void ProcessListBatchJobsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.BatchClient.StartBatchInferenceJob.g.cs b/src/libs/HumeAI/Generated/HumeAI.BatchClient.StartBatchInferenceJob.g.cs
index ada5b41..24c3962 100644
--- a/src/libs/HumeAI/Generated/HumeAI.BatchClient.StartBatchInferenceJob.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.BatchClient.StartBatchInferenceJob.g.cs
@@ -369,17 +369,15 @@ partial void ProcessStartBatchInferenceJobResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -416,17 +414,15 @@ partial void ProcessStartBatchInferenceJobResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroup.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroup.g.cs
index 7be40e5..efff17a 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroup.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroup.g.cs
@@ -388,17 +388,15 @@ partial void ProcessGetChatGroupResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -435,17 +433,15 @@ partial void ProcessGetChatGroupResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroupAudio.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroupAudio.g.cs
index 94428bd..d33a6e7 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroupAudio.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroupAudio.g.cs
@@ -388,17 +388,15 @@ partial void ProcessGetChatGroupAudioResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -435,17 +433,15 @@ partial void ProcessGetChatGroupAudioResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroupEvents.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroupEvents.g.cs
index 7beb198..83c4eed 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroupEvents.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroupEvents.g.cs
@@ -388,17 +388,15 @@ partial void ProcessListChatGroupEventsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -435,17 +433,15 @@ partial void ProcessListChatGroupEventsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroups.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroups.g.cs
index 8b9f2e6..8383f2a 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroups.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroups.g.cs
@@ -389,17 +389,15 @@ partial void ProcessListChatGroupsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -436,17 +434,15 @@ partial void ProcessListChatGroupsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.GetChatAudio.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.GetChatAudio.g.cs
index a20c42a..e34e983 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.GetChatAudio.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.GetChatAudio.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetChatAudioResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -403,17 +401,15 @@ partial void ProcessGetChatAudioResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChatEvents.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChatEvents.g.cs
index bfd8880..06a6214 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChatEvents.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChatEvents.g.cs
@@ -388,17 +388,15 @@ partial void ProcessListChatEventsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -435,17 +433,15 @@ partial void ProcessListChatEventsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChats.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChats.g.cs
index 87f2077..14b462c 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChats.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChats.g.cs
@@ -389,17 +389,15 @@ partial void ProcessListChatsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -436,17 +434,15 @@ partial void ProcessListChatsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfig.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfig.g.cs
index 6fdb81f..213dccf 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfig.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfig.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateConfigResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -414,17 +412,15 @@ partial void ProcessCreateConfigResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfigVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfigVersion.g.cs
index f3bc431..1775b64 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfigVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfigVersion.g.cs
@@ -376,17 +376,15 @@ partial void ProcessCreateConfigVersionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -423,17 +421,15 @@ partial void ProcessCreateConfigVersionResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfig.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfig.g.cs
index de951d1..32edb55 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfig.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfig.g.cs
@@ -342,17 +342,15 @@ await DeleteConfigAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -380,17 +378,15 @@ await DeleteConfigAsResponseAsync(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfigVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfigVersion.g.cs
index 3cfcafa..91097ca 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfigVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfigVersion.g.cs
@@ -351,17 +351,15 @@ await DeleteConfigVersionAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -389,17 +387,15 @@ await DeleteConfigVersionAsResponseAsync(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.GetConfigVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.GetConfigVersion.g.cs
index 6c23fef..49bcfee 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.GetConfigVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.GetConfigVersion.g.cs
@@ -365,17 +365,15 @@ partial void ProcessGetConfigVersionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -412,17 +410,15 @@ partial void ProcessGetConfigVersionResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigVersions.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigVersions.g.cs
index a5937d8..45ee200 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigVersions.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigVersions.g.cs
@@ -388,17 +388,15 @@ partial void ProcessListConfigVersionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -435,17 +433,15 @@ partial void ProcessListConfigVersionsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigs.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigs.g.cs
index 437083d..ac509c5 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigs.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigs.g.cs
@@ -389,17 +389,15 @@ partial void ProcessListConfigsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -436,17 +434,15 @@ partial void ProcessListConfigsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigDescription.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigDescription.g.cs
index f724cd9..e9c4626 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigDescription.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigDescription.g.cs
@@ -385,17 +385,15 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -432,17 +430,15 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigName.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigName.g.cs
index b2e1a7d..50892b6 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigName.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigName.g.cs
@@ -374,17 +374,15 @@ partial void ProcessUpdateConfigNameResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -419,17 +417,15 @@ partial void ProcessUpdateConfigNameResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviTool.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviTool.g.cs
index 989f217..fb9a0cb 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviTool.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviTool.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateEviToolResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -414,17 +412,15 @@ partial void ProcessCreateEviToolResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviToolVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviToolVersion.g.cs
index 935871f..623f4e0 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviToolVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviToolVersion.g.cs
@@ -376,17 +376,15 @@ partial void ProcessCreateEviToolVersionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -423,17 +421,15 @@ partial void ProcessCreateEviToolVersionResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviTool.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviTool.g.cs
index 1efb7c0..1b3f794 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviTool.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviTool.g.cs
@@ -342,17 +342,15 @@ await DeleteEviToolAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -380,17 +378,15 @@ await DeleteEviToolAsResponseAsync(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviToolVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviToolVersion.g.cs
index cf26d36..1b426c8 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviToolVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviToolVersion.g.cs
@@ -351,17 +351,15 @@ await DeleteEviToolVersionAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -389,17 +387,15 @@ await DeleteEviToolVersionAsResponseAsync(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.GetEviToolVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.GetEviToolVersion.g.cs
index dd2078d..01c8680 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.GetEviToolVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.GetEviToolVersion.g.cs
@@ -365,17 +365,15 @@ partial void ProcessGetEviToolVersionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -412,17 +410,15 @@ partial void ProcessGetEviToolVersionResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviToolVersions.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviToolVersions.g.cs
index 7bd18ad..4fe72b7 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviToolVersions.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviToolVersions.g.cs
@@ -388,17 +388,15 @@ partial void ProcessListEviToolVersionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -435,17 +433,15 @@ partial void ProcessListEviToolVersionsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviTools.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviTools.g.cs
index e4e470a..d337bea 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviTools.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviTools.g.cs
@@ -389,17 +389,15 @@ partial void ProcessListEviToolsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -436,17 +434,15 @@ partial void ProcessListEviToolsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolDescription.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolDescription.g.cs
index 4b969ea..bd9c07b 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolDescription.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolDescription.g.cs
@@ -385,17 +385,15 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -432,17 +430,15 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolName.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolName.g.cs
index 791f683..c89b448 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolName.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolName.g.cs
@@ -374,17 +374,15 @@ partial void ProcessUpdateEviToolNameResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -419,17 +417,15 @@ partial void ProcessUpdateEviToolNameResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.Exceptions.g.cs b/src/libs/HumeAI/Generated/HumeAI.Exceptions.g.cs
index 94b0815..4de65c1 100644
--- a/src/libs/HumeAI/Generated/HumeAI.Exceptions.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.Exceptions.g.cs
@@ -12,16 +12,19 @@ public partial class ApiException : global::System.Exception
/// The HTTP status code of the response.
///
public global::System.Net.HttpStatusCode StatusCode { get; }
+
///
/// The response body as a string, or null if the body could not be read.
/// This is always populated for error responses regardless of the ReadResponseAsString setting.
/// For success-path failures (e.g. deserialization errors), the client attempts a best-effort read.
///
public string? ResponseBody { get; set; }
+
///
/// The response headers.
///
public global::System.Collections.Generic.Dictionary>? ResponseHeaders { get; set; }
+
///
/// Initializes a new instance of the class.
///
@@ -49,6 +52,103 @@ public ApiException(string message, global::System.Exception? innerException, gl
{
StatusCode = statusCode;
}
+
+ ///
+ /// Constructs an instance whose runtime type matches the response status code when the typed exception hierarchy is enabled. Always returns a plain when the hierarchy is disabled.
+ ///
+ /// The HTTP status code of the response.
+ /// The error message.
+ /// An inner exception, when one is available.
+ /// The response headers; consulted for 429 Retry-After parsing when present.
+ public static global::HumeAI.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException = null,
+ global::System.Collections.Generic.IDictionary>? responseHeaders = null)
+ {
+ return new global::HumeAI.ApiException(message, innerException, statusCode);
+ }
+
+ ///
+ /// Convenience overload that constructs an with response body and headers populated.
+ ///
+ public static global::HumeAI.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException,
+ string? responseBody,
+ global::System.Collections.Generic.Dictionary>? responseHeaders)
+ {
+ var exception = global::HumeAI.ApiException.Create(statusCode, message, innerException, responseHeaders);
+ exception.ResponseBody = responseBody;
+ exception.ResponseHeaders = responseHeaders;
+ return exception;
+ }
+
+ ///
+ /// Parses a Retry-After response header (delta-seconds or HTTP-date) into a .
+ /// Returns null when the header is missing or unparseable. Public so consumer code that observes
+ /// directly can recover the value without re-implementing the parser.
+ ///
+ public static global::System.TimeSpan? TryParseRetryAfter(
+ global::System.Collections.Generic.IDictionary>? headers)
+ {
+ if (headers == null)
+ {
+ return null;
+ }
+
+ global::System.Collections.Generic.IEnumerable? values = null;
+ foreach (var entry in headers)
+ {
+ if (string.Equals(entry.Key, "Retry-After", global::System.StringComparison.OrdinalIgnoreCase))
+ {
+ values = entry.Value;
+ break;
+ }
+ }
+
+ if (values == null)
+ {
+ return null;
+ }
+
+ string? raw = null;
+ foreach (var value in values)
+ {
+ if (!string.IsNullOrWhiteSpace(value))
+ {
+ raw = value.Trim();
+ break;
+ }
+ }
+
+ if (string.IsNullOrEmpty(raw))
+ {
+ return null;
+ }
+
+ if (int.TryParse(
+ raw,
+ global::System.Globalization.NumberStyles.Integer,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ out var seconds) && seconds >= 0)
+ {
+ return global::System.TimeSpan.FromSeconds(seconds);
+ }
+
+ if (global::System.DateTimeOffset.TryParse(
+ raw,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ global::System.Globalization.DateTimeStyles.AssumeUniversal | global::System.Globalization.DateTimeStyles.AdjustToUniversal,
+ out var when))
+ {
+ var delta = when - global::System.DateTimeOffset.UtcNow;
+ return delta > global::System.TimeSpan.Zero ? delta : global::System.TimeSpan.Zero;
+ }
+
+ return null;
+ }
}
///
@@ -88,5 +188,39 @@ public ApiException(string message, global::System.Net.HttpStatusCode statusCode
public ApiException(string message, global::System.Exception? innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException, statusCode)
{
}
+
+ ///
+ /// Constructs an whose runtime type matches the response status code when the typed exception hierarchy is enabled.
+ ///
+ /// The HTTP status code of the response.
+ /// The error message.
+ /// An inner exception, when one is available.
+ /// The response headers; consulted for 429 Retry-After parsing when present.
+ public static new global::HumeAI.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException = null,
+ global::System.Collections.Generic.IDictionary>? responseHeaders = null)
+ {
+ return new global::HumeAI.ApiException(message, innerException, statusCode);
+ }
+
+ ///
+ /// Convenience overload that constructs an with response body, object, and headers populated.
+ ///
+ public static global::HumeAI.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException,
+ string? responseBody,
+ T? responseObject,
+ global::System.Collections.Generic.Dictionary>? responseHeaders)
+ {
+ var exception = global::HumeAI.ApiException.Create(statusCode, message, innerException, responseHeaders);
+ exception.ResponseBody = responseBody;
+ exception.ResponseObject = responseObject;
+ exception.ResponseHeaders = responseHeaders;
+ return exception;
+ }
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePrompt.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePrompt.g.cs
index 8ec0804..9b9af67 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePrompt.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePrompt.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreatePromptResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -414,17 +412,15 @@ partial void ProcessCreatePromptResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePromptVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePromptVersion.g.cs
index 486d26b..6c394ef 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePromptVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePromptVersion.g.cs
@@ -376,17 +376,15 @@ partial void ProcessCreatePromptVersionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -423,17 +421,15 @@ partial void ProcessCreatePromptVersionResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePrompt.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePrompt.g.cs
index 6503c2d..4aa2678 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePrompt.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePrompt.g.cs
@@ -342,17 +342,15 @@ await DeletePromptAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -380,17 +378,15 @@ await DeletePromptAsResponseAsync(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePromptVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePromptVersion.g.cs
index 1e504fa..eacc94e 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePromptVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePromptVersion.g.cs
@@ -351,17 +351,15 @@ await DeletePromptVersionAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -389,17 +387,15 @@ await DeletePromptVersionAsResponseAsync(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.GetPromptVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.GetPromptVersion.g.cs
index cfd9111..699538a 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.GetPromptVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.GetPromptVersion.g.cs
@@ -365,17 +365,15 @@ partial void ProcessGetPromptVersionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -412,17 +410,15 @@ partial void ProcessGetPromptVersionResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPromptVersions.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPromptVersions.g.cs
index 2461685..64c7c11 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPromptVersions.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPromptVersions.g.cs
@@ -388,17 +388,15 @@ partial void ProcessListPromptVersionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -435,17 +433,15 @@ partial void ProcessListPromptVersionsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPrompts.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPrompts.g.cs
index b9f6e44..9e78357 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPrompts.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPrompts.g.cs
@@ -389,17 +389,15 @@ partial void ProcessListPromptsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -436,17 +434,15 @@ partial void ProcessListPromptsResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptDescription.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptDescription.g.cs
index 7851ecc..36fef64 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptDescription.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptDescription.g.cs
@@ -385,17 +385,15 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -432,17 +430,15 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptName.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptName.g.cs
index 08f3b46..560bd94 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptName.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptName.g.cs
@@ -374,17 +374,15 @@ partial void ProcessUpdatePromptNameResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -419,17 +417,15 @@ partial void ProcessUpdatePromptNameResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceFile.g.cs b/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceFile.g.cs
index 12aaeed..06aafa0 100644
--- a/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceFile.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceFile.g.cs
@@ -363,17 +363,15 @@ partial void ProcessConvertVoiceFileResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
@@ -686,16 +684,15 @@ partial void ProcessConvertVoiceFileResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: null,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -730,17 +727,15 @@ partial void ProcessConvertVoiceFileResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceJson.g.cs b/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceJson.g.cs
index 133595d..f69bddd 100644
--- a/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceJson.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceJson.g.cs
@@ -367,17 +367,15 @@ partial void ProcessConvertVoiceJsonResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -414,17 +412,15 @@ partial void ProcessConvertVoiceJsonResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFile.g.cs b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFile.g.cs
index 483ca2a..668fd83 100644
--- a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFile.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFile.g.cs
@@ -363,17 +363,15 @@ partial void ProcessSynthesizeFileResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
@@ -686,16 +684,15 @@ partial void ProcessSynthesizeFileResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: null,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -730,17 +727,15 @@ partial void ProcessSynthesizeFileResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFileStreaming.g.cs b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFileStreaming.g.cs
index 6515093..b993a91 100644
--- a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFileStreaming.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFileStreaming.g.cs
@@ -363,17 +363,15 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
@@ -686,16 +684,15 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: null,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -730,17 +727,15 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJson.g.cs b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJson.g.cs
index 3a1cd62..b7764d2 100644
--- a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJson.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJson.g.cs
@@ -367,17 +367,15 @@ partial void ProcessSynthesizeJsonResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -414,17 +412,15 @@ partial void ProcessSynthesizeJsonResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJsonStreaming.g.cs b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJsonStreaming.g.cs
index ce4946f..a0e7b51 100644
--- a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJsonStreaming.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJsonStreaming.g.cs
@@ -367,17 +367,15 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -414,17 +412,15 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.CreateVoice.g.cs b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.CreateVoice.g.cs
index 7eadcee..acee0a8 100644
--- a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.CreateVoice.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.CreateVoice.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateVoiceResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -414,17 +412,15 @@ partial void ProcessCreateVoiceResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.DeleteVoice.g.cs b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.DeleteVoice.g.cs
index 3bd0011..9ab1c6a 100644
--- a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.DeleteVoice.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.DeleteVoice.g.cs
@@ -345,17 +345,15 @@ await DeleteVoiceAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -383,17 +381,15 @@ await DeleteVoiceAsResponseAsync(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}
diff --git a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.ListVoices.g.cs b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.ListVoices.g.cs
index 3a8363e..a4dfebb 100644
--- a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.ListVoices.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.ListVoices.g.cs
@@ -389,17 +389,15 @@ partial void ProcessListVoicesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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
@@ -436,17 +434,15 @@ partial void ProcessListVoicesResponseContent(
{
}
- throw new global::HumeAI.ApiException(
+ throw global::HumeAI.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));
}
}