diff --git a/src/libs/Pruna/Generated/Pruna.PrunaClient.CreatePrediction.g.cs b/src/libs/Pruna/Generated/Pruna.PrunaClient.CreatePrediction.g.cs index 2200e59..6bb670b 100644 --- a/src/libs/Pruna/Generated/Pruna.PrunaClient.CreatePrediction.g.cs +++ b/src/libs/Pruna/Generated/Pruna.PrunaClient.CreatePrediction.g.cs @@ -394,7 +394,7 @@ partial void ProcessCreatePredictionResponseContent( { throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -439,7 +439,7 @@ partial void ProcessCreatePredictionResponseContent( throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Pruna/Generated/Pruna.PrunaClient.GetFile.g.cs b/src/libs/Pruna/Generated/Pruna.PrunaClient.GetFile.g.cs index 6809519..dd9ccd8 100644 --- a/src/libs/Pruna/Generated/Pruna.PrunaClient.GetFile.g.cs +++ b/src/libs/Pruna/Generated/Pruna.PrunaClient.GetFile.g.cs @@ -358,7 +358,7 @@ partial void ProcessGetFileResponseContent( { throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -403,7 +403,7 @@ partial void ProcessGetFileResponseContent( throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionDelivery.g.cs b/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionDelivery.g.cs index 7b786f9..f6d6356 100644 --- a/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionDelivery.g.cs +++ b/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionDelivery.g.cs @@ -358,7 +358,7 @@ partial void ProcessGetPredictionDeliveryResponseContent( throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -681,7 +681,7 @@ partial void ProcessGetPredictionDeliveryResponseContent( throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1036,7 +1036,7 @@ partial void ProcessGetPredictionDeliveryResponseContent( throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionStatus.g.cs b/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionStatus.g.cs index f9bd5e0..a948a01 100644 --- a/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionStatus.g.cs +++ b/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionStatus.g.cs @@ -358,7 +358,7 @@ partial void ProcessGetPredictionStatusResponseContent( { throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -403,7 +403,7 @@ partial void ProcessGetPredictionStatusResponseContent( throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Pruna/Generated/Pruna.PrunaClient.UploadFile.g.cs b/src/libs/Pruna/Generated/Pruna.PrunaClient.UploadFile.g.cs index b1394d0..37a0d55 100644 --- a/src/libs/Pruna/Generated/Pruna.PrunaClient.UploadFile.g.cs +++ b/src/libs/Pruna/Generated/Pruna.PrunaClient.UploadFile.g.cs @@ -405,7 +405,7 @@ request.Contentname is null { throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -450,7 +450,7 @@ request.Contentname is null throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -839,7 +839,7 @@ request.Contentname is null { throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -880,7 +880,7 @@ request.Contentname is null throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1247,7 +1247,7 @@ request.Contentname is null { throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1292,7 +1292,7 @@ request.Contentname is null throw global::Pruna.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary(