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 @@ -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));
}

}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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));
}
}

Expand Down
24 changes: 10 additions & 14 deletions src/libs/HumeAI/Generated/HumeAI.BatchClient.ListBatchJobs.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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));
}
}

Expand Down
24 changes: 10 additions & 14 deletions src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroup.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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));
}
}

Expand Down
Loading