diff --git a/src/libs/MiniMax/Generated/MiniMax.Exceptions.g.cs b/src/libs/MiniMax/Generated/MiniMax.Exceptions.g.cs
index 9cb455d..832bd9e 100644
--- a/src/libs/MiniMax/Generated/MiniMax.Exceptions.g.cs
+++ b/src/libs/MiniMax/Generated/MiniMax.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::MiniMax.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException = null,
+ global::System.Collections.Generic.IDictionary>? responseHeaders = null)
+ {
+ return new global::MiniMax.ApiException(message, innerException, statusCode);
+ }
+
+ ///
+ /// Convenience overload that constructs an with response body and headers populated.
+ ///
+ public static global::MiniMax.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException,
+ string? responseBody,
+ global::System.Collections.Generic.Dictionary>? responseHeaders)
+ {
+ var exception = global::MiniMax.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::MiniMax.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException = null,
+ global::System.Collections.Generic.IDictionary>? responseHeaders = null)
+ {
+ return new global::MiniMax.ApiException(message, innerException, statusCode);
+ }
+
+ ///
+ /// Convenience overload that constructs an with response body, object, and headers populated.
+ ///
+ public static global::MiniMax.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::MiniMax.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/MiniMax/Generated/MiniMax.FilesClient.DeleteFile.g.cs b/src/libs/MiniMax/Generated/MiniMax.FilesClient.DeleteFile.g.cs
index a69b306..7d90f66 100644
--- a/src/libs/MiniMax/Generated/MiniMax.FilesClient.DeleteFile.g.cs
+++ b/src/libs/MiniMax/Generated/MiniMax.FilesClient.DeleteFile.g.cs
@@ -384,17 +384,15 @@ partial void ProcessDeleteFileResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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
@@ -431,17 +429,15 @@ partial void ProcessDeleteFileResponseContent(
{
}
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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/MiniMax/Generated/MiniMax.FilesClient.ListFiles.g.cs b/src/libs/MiniMax/Generated/MiniMax.FilesClient.ListFiles.g.cs
index 7350cc6..d1689bf 100644
--- a/src/libs/MiniMax/Generated/MiniMax.FilesClient.ListFiles.g.cs
+++ b/src/libs/MiniMax/Generated/MiniMax.FilesClient.ListFiles.g.cs
@@ -378,17 +378,15 @@ partial void ProcessListFilesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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
@@ -425,17 +423,15 @@ partial void ProcessListFilesResponseContent(
{
}
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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/MiniMax/Generated/MiniMax.FilesClient.RetrieveFile.g.cs b/src/libs/MiniMax/Generated/MiniMax.FilesClient.RetrieveFile.g.cs
index 2ab8e4c..166f9d2 100644
--- a/src/libs/MiniMax/Generated/MiniMax.FilesClient.RetrieveFile.g.cs
+++ b/src/libs/MiniMax/Generated/MiniMax.FilesClient.RetrieveFile.g.cs
@@ -378,17 +378,15 @@ partial void ProcessRetrieveFileResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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
@@ -425,17 +423,15 @@ partial void ProcessRetrieveFileResponseContent(
{
}
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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/MiniMax/Generated/MiniMax.FilesClient.UploadFile.g.cs b/src/libs/MiniMax/Generated/MiniMax.FilesClient.UploadFile.g.cs
index e02f276..137db69 100644
--- a/src/libs/MiniMax/Generated/MiniMax.FilesClient.UploadFile.g.cs
+++ b/src/libs/MiniMax/Generated/MiniMax.FilesClient.UploadFile.g.cs
@@ -428,17 +428,15 @@ request.Filename is null
}
catch (global::System.Exception __ex)
{
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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
@@ -475,17 +473,15 @@ request.Filename is null
{
}
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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));
}
}
@@ -896,17 +892,15 @@ request.Filename is null
}
catch (global::System.Exception __ex)
{
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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
@@ -939,17 +933,15 @@ request.Filename is null
{
}
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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));
}
}
@@ -1325,17 +1317,15 @@ request.Filename is null
}
catch (global::System.Exception __ex)
{
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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
@@ -1372,17 +1362,15 @@ request.Filename is null
{
}
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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/MiniMax/Generated/MiniMax.MusicClient.CreateMusicGeneration.g.cs b/src/libs/MiniMax/Generated/MiniMax.MusicClient.CreateMusicGeneration.g.cs
index 2bb9747..48e6792 100644
--- a/src/libs/MiniMax/Generated/MiniMax.MusicClient.CreateMusicGeneration.g.cs
+++ b/src/libs/MiniMax/Generated/MiniMax.MusicClient.CreateMusicGeneration.g.cs
@@ -390,17 +390,15 @@ partial void ProcessCreateMusicGenerationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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
@@ -437,17 +435,15 @@ partial void ProcessCreateMusicGenerationResponseContent(
{
}
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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/MiniMax/Generated/MiniMax.SpeechClient.CreateTextToSpeech.g.cs b/src/libs/MiniMax/Generated/MiniMax.SpeechClient.CreateTextToSpeech.g.cs
index f88cb84..4b3c27a 100644
--- a/src/libs/MiniMax/Generated/MiniMax.SpeechClient.CreateTextToSpeech.g.cs
+++ b/src/libs/MiniMax/Generated/MiniMax.SpeechClient.CreateTextToSpeech.g.cs
@@ -390,17 +390,15 @@ partial void ProcessCreateTextToSpeechResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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
@@ -437,17 +435,15 @@ partial void ProcessCreateTextToSpeechResponseContent(
{
}
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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/MiniMax/Generated/MiniMax.SpeechClient.CreateVoiceClone.g.cs b/src/libs/MiniMax/Generated/MiniMax.SpeechClient.CreateVoiceClone.g.cs
index 9d9d563..f284baa 100644
--- a/src/libs/MiniMax/Generated/MiniMax.SpeechClient.CreateVoiceClone.g.cs
+++ b/src/libs/MiniMax/Generated/MiniMax.SpeechClient.CreateVoiceClone.g.cs
@@ -390,17 +390,15 @@ partial void ProcessCreateVoiceCloneResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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
@@ -437,17 +435,15 @@ partial void ProcessCreateVoiceCloneResponseContent(
{
}
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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/MiniMax/Generated/MiniMax.VideoClient.CreateVideoGenerationTask.g.cs b/src/libs/MiniMax/Generated/MiniMax.VideoClient.CreateVideoGenerationTask.g.cs
index 3b82ad6..2b0b57b 100644
--- a/src/libs/MiniMax/Generated/MiniMax.VideoClient.CreateVideoGenerationTask.g.cs
+++ b/src/libs/MiniMax/Generated/MiniMax.VideoClient.CreateVideoGenerationTask.g.cs
@@ -392,17 +392,15 @@ partial void ProcessCreateVideoGenerationTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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
@@ -439,17 +437,15 @@ partial void ProcessCreateVideoGenerationTaskResponseContent(
{
}
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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/MiniMax/Generated/MiniMax.VideoClient.GetVideoGenerationTask.g.cs b/src/libs/MiniMax/Generated/MiniMax.VideoClient.GetVideoGenerationTask.g.cs
index bfc62e9..245ead7 100644
--- a/src/libs/MiniMax/Generated/MiniMax.VideoClient.GetVideoGenerationTask.g.cs
+++ b/src/libs/MiniMax/Generated/MiniMax.VideoClient.GetVideoGenerationTask.g.cs
@@ -382,17 +382,15 @@ partial void ProcessGetVideoGenerationTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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
@@ -429,17 +427,15 @@ partial void ProcessGetVideoGenerationTaskResponseContent(
{
}
- throw new global::MiniMax.ApiException(
+ throw global::MiniMax.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));
}
}