diff --git a/src/libs/Zep/Generated/Zep.Exceptions.g.cs b/src/libs/Zep/Generated/Zep.Exceptions.g.cs
index 5e91945..b5da5c1 100644
--- a/src/libs/Zep/Generated/Zep.Exceptions.g.cs
+++ b/src/libs/Zep/Generated/Zep.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::Zep.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException = null,
+ global::System.Collections.Generic.IDictionary>? responseHeaders = null)
+ {
+ return new global::Zep.ApiException(message, innerException, statusCode);
+ }
+
+ ///
+ /// Convenience overload that constructs an with response body and headers populated.
+ ///
+ public static global::Zep.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException,
+ string? responseBody,
+ global::System.Collections.Generic.Dictionary>? responseHeaders)
+ {
+ var exception = global::Zep.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::Zep.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException = null,
+ global::System.Collections.Generic.IDictionary>? responseHeaders = null)
+ {
+ return new global::Zep.ApiException(message, innerException, statusCode);
+ }
+
+ ///
+ /// Convenience overload that constructs an with response body, object, and headers populated.
+ ///
+ public static global::Zep.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::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.AddBatchItems.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.AddBatchItems.g.cs
index cae2188..2f6260f 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.AddBatchItems.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.AddBatchItems.g.cs
@@ -371,18 +371,17 @@ partial void ProcessAddBatchItemsResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Forbidden
if ((int)__response.StatusCode == 403)
@@ -409,18 +408,17 @@ partial void ProcessAddBatchItemsResponseContent(
__exception_403 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseObject = __value_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseObject: __value_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -447,18 +445,17 @@ partial void ProcessAddBatchItemsResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Conflict
if ((int)__response.StatusCode == 409)
@@ -485,18 +482,17 @@ partial void ProcessAddBatchItemsResponseContent(
__exception_409 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_409 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_409,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_409,
- ResponseObject = __value_409,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_409,
+ responseObject: __value_409,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -523,18 +519,17 @@ partial void ProcessAddBatchItemsResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -568,17 +563,15 @@ partial void ProcessAddBatchItemsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -615,17 +608,15 @@ partial void ProcessAddBatchItemsResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.CreateBatch.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.CreateBatch.g.cs
index b766cfd..cd02d32 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.CreateBatch.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.CreateBatch.g.cs
@@ -362,18 +362,17 @@ partial void ProcessCreateBatchResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Forbidden
if ((int)__response.StatusCode == 403)
@@ -400,18 +399,17 @@ partial void ProcessCreateBatchResponseContent(
__exception_403 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseObject = __value_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseObject: __value_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -438,18 +436,17 @@ partial void ProcessCreateBatchResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -483,17 +480,15 @@ partial void ProcessCreateBatchResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -530,17 +525,15 @@ partial void ProcessCreateBatchResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.DeleteBatch.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.DeleteBatch.g.cs
index 55e45f9..d4bf484 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.DeleteBatch.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.DeleteBatch.g.cs
@@ -351,18 +351,17 @@ partial void ProcessDeleteBatchResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Forbidden
if ((int)__response.StatusCode == 403)
@@ -389,18 +388,17 @@ partial void ProcessDeleteBatchResponseContent(
__exception_403 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseObject = __value_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseObject: __value_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -427,18 +425,17 @@ partial void ProcessDeleteBatchResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Conflict
if ((int)__response.StatusCode == 409)
@@ -465,18 +462,17 @@ partial void ProcessDeleteBatchResponseContent(
__exception_409 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_409 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_409,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_409,
- ResponseObject = __value_409,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_409,
+ responseObject: __value_409,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -503,18 +499,17 @@ partial void ProcessDeleteBatchResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -548,17 +543,15 @@ partial void ProcessDeleteBatchResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -595,17 +588,15 @@ partial void ProcessDeleteBatchResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.GetBatch.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.GetBatch.g.cs
index 7a4e817..fde040f 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.GetBatch.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.GetBatch.g.cs
@@ -351,18 +351,17 @@ partial void ProcessGetBatchResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Forbidden
if ((int)__response.StatusCode == 403)
@@ -389,18 +388,17 @@ partial void ProcessGetBatchResponseContent(
__exception_403 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseObject = __value_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseObject: __value_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -427,18 +425,17 @@ partial void ProcessGetBatchResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -465,18 +462,17 @@ partial void ProcessGetBatchResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -510,17 +506,15 @@ partial void ProcessGetBatchResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -557,17 +551,15 @@ partial void ProcessGetBatchResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.ListBatchItems.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ListBatchItems.g.cs
index 4b8d300..067bb8c 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ListBatchItems.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ListBatchItems.g.cs
@@ -383,18 +383,17 @@ partial void ProcessListBatchItemsResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Forbidden
if ((int)__response.StatusCode == 403)
@@ -421,18 +420,17 @@ partial void ProcessListBatchItemsResponseContent(
__exception_403 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseObject = __value_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseObject: __value_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -459,18 +457,17 @@ partial void ProcessListBatchItemsResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -497,18 +494,17 @@ partial void ProcessListBatchItemsResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -542,17 +538,15 @@ partial void ProcessListBatchItemsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -589,17 +583,15 @@ partial void ProcessListBatchItemsResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.ListBatches.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ListBatches.g.cs
index 26132d8..0592088 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ListBatches.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ListBatches.g.cs
@@ -374,18 +374,17 @@ partial void ProcessListBatchesResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Forbidden
if ((int)__response.StatusCode == 403)
@@ -412,18 +411,17 @@ partial void ProcessListBatchesResponseContent(
__exception_403 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseObject = __value_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseObject: __value_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -450,18 +448,17 @@ partial void ProcessListBatchesResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -495,17 +492,15 @@ partial void ProcessListBatchesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -542,17 +537,15 @@ partial void ProcessListBatchesResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.ProcessBatch.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ProcessBatch.g.cs
index 807f889..5ccfaeb 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ProcessBatch.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ProcessBatch.g.cs
@@ -351,18 +351,17 @@ partial void ProcessProcessBatchResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Forbidden
if ((int)__response.StatusCode == 403)
@@ -389,18 +388,17 @@ partial void ProcessProcessBatchResponseContent(
__exception_403 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseObject = __value_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseObject: __value_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -427,18 +425,17 @@ partial void ProcessProcessBatchResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Conflict
if ((int)__response.StatusCode == 409)
@@ -465,18 +462,17 @@ partial void ProcessProcessBatchResponseContent(
__exception_409 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_409 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_409,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_409,
- ResponseObject = __value_409,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_409,
+ responseObject: __value_409,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -503,18 +499,17 @@ partial void ProcessProcessBatchResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -548,17 +543,15 @@ partial void ProcessProcessBatchResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -595,17 +588,15 @@ partial void ProcessProcessBatchResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageContextClient.CreateContextTemplate.g.cs b/src/libs/Zep/Generated/Zep.SubpackageContextClient.CreateContextTemplate.g.cs
index 40a9234..a83b6fd 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageContextClient.CreateContextTemplate.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageContextClient.CreateContextTemplate.g.cs
@@ -362,18 +362,17 @@ partial void ProcessCreateContextTemplateResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -400,18 +399,17 @@ partial void ProcessCreateContextTemplateResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -445,17 +443,15 @@ partial void ProcessCreateContextTemplateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -492,17 +488,15 @@ partial void ProcessCreateContextTemplateResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageContextClient.DeleteContextTemplate.g.cs b/src/libs/Zep/Generated/Zep.SubpackageContextClient.DeleteContextTemplate.g.cs
index 8e1d285..e5015d7 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageContextClient.DeleteContextTemplate.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageContextClient.DeleteContextTemplate.g.cs
@@ -351,18 +351,17 @@ partial void ProcessDeleteContextTemplateResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -389,18 +388,17 @@ partial void ProcessDeleteContextTemplateResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -427,18 +425,17 @@ partial void ProcessDeleteContextTemplateResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -472,17 +469,15 @@ partial void ProcessDeleteContextTemplateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -519,17 +514,15 @@ partial void ProcessDeleteContextTemplateResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageContextClient.GetContextTemplate.g.cs b/src/libs/Zep/Generated/Zep.SubpackageContextClient.GetContextTemplate.g.cs
index 91480af..a406506 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageContextClient.GetContextTemplate.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageContextClient.GetContextTemplate.g.cs
@@ -351,18 +351,17 @@ partial void ProcessGetContextTemplateResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -389,18 +388,17 @@ partial void ProcessGetContextTemplateResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -427,18 +425,17 @@ partial void ProcessGetContextTemplateResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -472,17 +469,15 @@ partial void ProcessGetContextTemplateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -519,17 +514,15 @@ partial void ProcessGetContextTemplateResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageContextClient.ListContextTemplates.g.cs b/src/libs/Zep/Generated/Zep.SubpackageContextClient.ListContextTemplates.g.cs
index 7d2ff0b..1a29390 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageContextClient.ListContextTemplates.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageContextClient.ListContextTemplates.g.cs
@@ -342,18 +342,17 @@ partial void ProcessListContextTemplatesResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -380,18 +379,17 @@ partial void ProcessListContextTemplatesResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -425,17 +423,15 @@ partial void ProcessListContextTemplatesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -472,17 +468,15 @@ partial void ProcessListContextTemplatesResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageContextClient.UpdateContextTemplate.g.cs b/src/libs/Zep/Generated/Zep.SubpackageContextClient.UpdateContextTemplate.g.cs
index 1d90bbe..4821dac 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageContextClient.UpdateContextTemplate.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageContextClient.UpdateContextTemplate.g.cs
@@ -371,18 +371,17 @@ partial void ProcessUpdateContextTemplateResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -409,18 +408,17 @@ partial void ProcessUpdateContextTemplateResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -447,18 +445,17 @@ partial void ProcessUpdateContextTemplateResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -492,17 +489,15 @@ partial void ProcessUpdateContextTemplateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -539,17 +534,15 @@ partial void ProcessUpdateContextTemplateResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageDataClient.AddData.g.cs b/src/libs/Zep/Generated/Zep.SubpackageDataClient.AddData.g.cs
index 797361c..d52870d 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageDataClient.AddData.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageDataClient.AddData.g.cs
@@ -362,18 +362,17 @@ partial void ProcessAddDataResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -400,18 +399,17 @@ partial void ProcessAddDataResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -445,17 +443,15 @@ partial void ProcessAddDataResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -492,17 +488,15 @@ partial void ProcessAddDataResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageDataClient.AddDataInBatchMode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageDataClient.AddDataInBatchMode.g.cs
index 1a9189f..955da09 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageDataClient.AddDataInBatchMode.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageDataClient.AddDataInBatchMode.g.cs
@@ -364,18 +364,17 @@ partial void ProcessAddDataInBatchModeResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -402,18 +401,17 @@ partial void ProcessAddDataInBatchModeResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -447,17 +445,15 @@ partial void ProcessAddDataInBatchModeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -494,17 +490,15 @@ partial void ProcessAddDataInBatchModeResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageDataClient.CloneGraph.g.cs b/src/libs/Zep/Generated/Zep.SubpackageDataClient.CloneGraph.g.cs
index 02b17d2..62450e4 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageDataClient.CloneGraph.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageDataClient.CloneGraph.g.cs
@@ -362,18 +362,17 @@ partial void ProcessCloneGraphResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -400,18 +399,17 @@ partial void ProcessCloneGraphResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -445,17 +443,15 @@ partial void ProcessCloneGraphResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -492,17 +488,15 @@ partial void ProcessCloneGraphResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.AddFactTriple.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.AddFactTriple.g.cs
index 8af6290..2605c8d 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.AddFactTriple.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.AddFactTriple.g.cs
@@ -362,18 +362,17 @@ partial void ProcessAddFactTripleResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -400,18 +399,17 @@ partial void ProcessAddFactTripleResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -445,17 +443,15 @@ partial void ProcessAddFactTripleResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -492,17 +488,15 @@ partial void ProcessAddFactTripleResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.DeleteEdge.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteEdge.g.cs
index 4a7a252..6e64cb9 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteEdge.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteEdge.g.cs
@@ -351,18 +351,17 @@ partial void ProcessDeleteEdgeResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -389,18 +388,17 @@ partial void ProcessDeleteEdgeResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -427,18 +425,17 @@ partial void ProcessDeleteEdgeResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -472,17 +469,15 @@ partial void ProcessDeleteEdgeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -519,17 +514,15 @@ partial void ProcessDeleteEdgeResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.DeleteEpisode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteEpisode.g.cs
index 3c468d9..6406830 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteEpisode.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteEpisode.g.cs
@@ -351,18 +351,17 @@ partial void ProcessDeleteEpisodeResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -389,18 +388,17 @@ partial void ProcessDeleteEpisodeResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -427,18 +425,17 @@ partial void ProcessDeleteEpisodeResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -472,17 +469,15 @@ partial void ProcessDeleteEpisodeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -519,17 +514,15 @@ partial void ProcessDeleteEpisodeResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.DeleteNode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteNode.g.cs
index d318f81..191ebf9 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteNode.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteNode.g.cs
@@ -351,18 +351,17 @@ partial void ProcessDeleteNodeResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -389,18 +388,17 @@ partial void ProcessDeleteNodeResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -427,18 +425,17 @@ partial void ProcessDeleteNodeResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -472,17 +469,15 @@ partial void ProcessDeleteNodeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -519,17 +514,15 @@ partial void ProcessDeleteNodeResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetEdge.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEdge.g.cs
index daba5bf..cddf5f9 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEdge.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEdge.g.cs
@@ -351,18 +351,17 @@ partial void ProcessGetEdgeResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -389,18 +388,17 @@ partial void ProcessGetEdgeResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -427,18 +425,17 @@ partial void ProcessGetEdgeResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -472,17 +469,15 @@ partial void ProcessGetEdgeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -519,17 +514,15 @@ partial void ProcessGetEdgeResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetEntityEdgesForANode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEntityEdgesForANode.g.cs
index d4f41da..8aa978e 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEntityEdgesForANode.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEntityEdgesForANode.g.cs
@@ -351,18 +351,17 @@ partial void ProcessGetEntityEdgesForANodeResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -389,18 +388,17 @@ partial void ProcessGetEntityEdgesForANodeResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -434,17 +432,15 @@ partial void ProcessGetEntityEdgesForANodeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -481,17 +477,15 @@ partial void ProcessGetEntityEdgesForANodeResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetEpisodesForANode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEpisodesForANode.g.cs
index 0cf16f5..1e3c0d9 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEpisodesForANode.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEpisodesForANode.g.cs
@@ -351,18 +351,17 @@ partial void ProcessGetEpisodesForANodeResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -389,18 +388,17 @@ partial void ProcessGetEpisodesForANodeResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -434,17 +432,15 @@ partial void ProcessGetEpisodesForANodeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -481,17 +477,15 @@ partial void ProcessGetEpisodesForANodeResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetGraphEdges.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetGraphEdges.g.cs
index d920198..ffcd878 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetGraphEdges.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetGraphEdges.g.cs
@@ -371,18 +371,17 @@ partial void ProcessGetGraphEdgesResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -409,18 +408,17 @@ partial void ProcessGetGraphEdgesResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -454,17 +452,15 @@ partial void ProcessGetGraphEdgesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -501,17 +497,15 @@ partial void ProcessGetGraphEdgesResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetGraphNodes.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetGraphNodes.g.cs
index c93af64..ed4ec3d 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetGraphNodes.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetGraphNodes.g.cs
@@ -371,18 +371,17 @@ partial void ProcessGetGraphNodesResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -409,18 +408,17 @@ partial void ProcessGetGraphNodesResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -454,17 +452,15 @@ partial void ProcessGetGraphNodesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -501,17 +497,15 @@ partial void ProcessGetGraphNodesResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetNode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetNode.g.cs
index e879e63..3a476ec 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetNode.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetNode.g.cs
@@ -351,18 +351,17 @@ partial void ProcessGetNodeResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -389,18 +388,17 @@ partial void ProcessGetNodeResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -427,18 +425,17 @@ partial void ProcessGetNodeResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -472,17 +469,15 @@ partial void ProcessGetNodeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -519,17 +514,15 @@ partial void ProcessGetNodeResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetUserEdges.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetUserEdges.g.cs
index 82f5f03..4899688 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetUserEdges.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetUserEdges.g.cs
@@ -371,18 +371,17 @@ partial void ProcessGetUserEdgesResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -409,18 +408,17 @@ partial void ProcessGetUserEdgesResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -454,17 +452,15 @@ partial void ProcessGetUserEdgesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -501,17 +497,15 @@ partial void ProcessGetUserEdgesResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetUserNodes.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetUserNodes.g.cs
index aa1e998..3905533 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetUserNodes.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetUserNodes.g.cs
@@ -371,18 +371,17 @@ partial void ProcessGetUserNodesResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -409,18 +408,17 @@ partial void ProcessGetUserNodesResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -454,17 +452,15 @@ partial void ProcessGetUserNodesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -501,17 +497,15 @@ partial void ProcessGetUserNodesResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEpisodesClient.GetEpisode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetEpisode.g.cs
index b8636d2..54d8177 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetEpisode.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetEpisode.g.cs
@@ -351,18 +351,17 @@ partial void ProcessGetEpisodeResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -389,18 +388,17 @@ partial void ProcessGetEpisodeResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -434,17 +432,15 @@ partial void ProcessGetEpisodeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -481,17 +477,15 @@ partial void ProcessGetEpisodeResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEpisodesClient.GetGraphEpisodes.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetGraphEpisodes.g.cs
index e13c828..9ec1cd5 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetGraphEpisodes.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetGraphEpisodes.g.cs
@@ -363,18 +363,17 @@ partial void ProcessGetGraphEpisodesResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -401,18 +400,17 @@ partial void ProcessGetGraphEpisodesResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -446,17 +444,15 @@ partial void ProcessGetGraphEpisodesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -493,17 +489,15 @@ partial void ProcessGetGraphEpisodesResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEpisodesClient.GetUserEpisodes.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetUserEpisodes.g.cs
index 75fe031..f68fd61 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetUserEpisodes.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetUserEpisodes.g.cs
@@ -363,18 +363,17 @@ partial void ProcessGetUserEpisodesResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -401,18 +400,17 @@ partial void ProcessGetUserEpisodesResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -446,17 +444,15 @@ partial void ProcessGetUserEpisodesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -493,17 +489,15 @@ partial void ProcessGetUserEpisodesResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEpisodesClient.ReturnAnyNodesAndEdgesMentionedInAnEpisode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.ReturnAnyNodesAndEdgesMentionedInAnEpisode.g.cs
index 4ff1d5b..b504fa8 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.ReturnAnyNodesAndEdgesMentionedInAnEpisode.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.ReturnAnyNodesAndEdgesMentionedInAnEpisode.g.cs
@@ -351,18 +351,17 @@ partial void ProcessReturnAnyNodesAndEdgesMentionedInAnEpisodeResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -389,18 +388,17 @@ partial void ProcessReturnAnyNodesAndEdgesMentionedInAnEpisodeResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -434,17 +432,15 @@ partial void ProcessReturnAnyNodesAndEdgesMentionedInAnEpisodeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -481,17 +477,15 @@ partial void ProcessReturnAnyNodesAndEdgesMentionedInAnEpisodeResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageEpisodesClient.UpdateEpisodeMetadata.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.UpdateEpisodeMetadata.g.cs
index d8826d2..df359c4 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.UpdateEpisodeMetadata.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.UpdateEpisodeMetadata.g.cs
@@ -371,18 +371,17 @@ partial void ProcessUpdateEpisodeMetadataResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Forbidden
if ((int)__response.StatusCode == 403)
@@ -409,18 +408,17 @@ partial void ProcessUpdateEpisodeMetadataResponseContent(
__exception_403 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseObject = __value_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseObject: __value_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -447,18 +445,17 @@ partial void ProcessUpdateEpisodeMetadataResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -485,18 +482,17 @@ partial void ProcessUpdateEpisodeMetadataResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -530,17 +526,15 @@ partial void ProcessUpdateEpisodeMetadataResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -577,17 +571,15 @@ partial void ProcessUpdateEpisodeMetadataResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.AddCustomInstructions.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.AddCustomInstructions.g.cs
index f0002cd..29700ff 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.AddCustomInstructions.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.AddCustomInstructions.g.cs
@@ -362,18 +362,17 @@ partial void ProcessAddCustomInstructionsResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -400,18 +399,17 @@ partial void ProcessAddCustomInstructionsResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -438,18 +436,17 @@ partial void ProcessAddCustomInstructionsResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -483,17 +480,15 @@ partial void ProcessAddCustomInstructionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -530,17 +525,15 @@ partial void ProcessAddCustomInstructionsResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.CreateGraph.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.CreateGraph.g.cs
index b9f4879..d7a047c 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.CreateGraph.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.CreateGraph.g.cs
@@ -362,18 +362,17 @@ partial void ProcessCreateGraphResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -400,18 +399,17 @@ partial void ProcessCreateGraphResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -445,17 +443,15 @@ partial void ProcessCreateGraphResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -492,17 +488,15 @@ partial void ProcessCreateGraphResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.DeleteCustomInstructions.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DeleteCustomInstructions.g.cs
index 6e2f09d..d9da9ae 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DeleteCustomInstructions.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DeleteCustomInstructions.g.cs
@@ -362,18 +362,17 @@ partial void ProcessDeleteCustomInstructionsResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -400,18 +399,17 @@ partial void ProcessDeleteCustomInstructionsResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -438,18 +436,17 @@ partial void ProcessDeleteCustomInstructionsResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -483,17 +480,15 @@ partial void ProcessDeleteCustomInstructionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -530,17 +525,15 @@ partial void ProcessDeleteCustomInstructionsResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.DeleteGraph.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DeleteGraph.g.cs
index e1c525c..3286aab 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DeleteGraph.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DeleteGraph.g.cs
@@ -351,18 +351,17 @@ partial void ProcessDeleteGraphResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -389,18 +388,17 @@ partial void ProcessDeleteGraphResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -427,18 +425,17 @@ partial void ProcessDeleteGraphResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -472,17 +469,15 @@ partial void ProcessDeleteGraphResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -519,17 +514,15 @@ partial void ProcessDeleteGraphResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.DetectPatternsExperimental.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DetectPatternsExperimental.g.cs
index 0270182..fd00215 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DetectPatternsExperimental.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DetectPatternsExperimental.g.cs
@@ -368,18 +368,17 @@ partial void ProcessDetectPatternsExperimentalResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Forbidden
if ((int)__response.StatusCode == 403)
@@ -406,18 +405,17 @@ partial void ProcessDetectPatternsExperimentalResponseContent(
__exception_403 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseObject = __value_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseObject: __value_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -444,18 +442,17 @@ partial void ProcessDetectPatternsExperimentalResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -482,18 +479,17 @@ partial void ProcessDetectPatternsExperimentalResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -527,17 +523,15 @@ partial void ProcessDetectPatternsExperimentalResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -574,17 +568,15 @@ partial void ProcessDetectPatternsExperimentalResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.GetGraph.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.GetGraph.g.cs
index f015f00..8d7da3e 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.GetGraph.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.GetGraph.g.cs
@@ -351,18 +351,17 @@ partial void ProcessGetGraphResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -389,18 +388,17 @@ partial void ProcessGetGraphResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -434,17 +432,15 @@ partial void ProcessGetGraphResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -481,17 +477,15 @@ partial void ProcessGetGraphResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.ListAllGraphs.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListAllGraphs.g.cs
index 07fb4be..fa2aad1 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListAllGraphs.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListAllGraphs.g.cs
@@ -394,18 +394,17 @@ partial void ProcessListAllGraphsResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -432,18 +431,17 @@ partial void ProcessListAllGraphsResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -477,17 +475,15 @@ partial void ProcessListAllGraphsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -524,17 +520,15 @@ partial void ProcessListAllGraphsResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.ListCustomInstructions.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListCustomInstructions.g.cs
index ce799d2..5421250 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListCustomInstructions.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListCustomInstructions.g.cs
@@ -364,18 +364,17 @@ partial void ProcessListCustomInstructionsResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -402,18 +401,17 @@ partial void ProcessListCustomInstructionsResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -440,18 +438,17 @@ partial void ProcessListCustomInstructionsResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -485,17 +482,15 @@ partial void ProcessListCustomInstructionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -532,17 +527,15 @@ partial void ProcessListCustomInstructionsResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.ListOntology.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListOntology.g.cs
index 9770972..955fb4c 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListOntology.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListOntology.g.cs
@@ -344,18 +344,17 @@ partial void ProcessListOntologyResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -382,18 +381,17 @@ partial void ProcessListOntologyResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -427,17 +425,15 @@ partial void ProcessListOntologyResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -474,17 +470,15 @@ partial void ProcessListOntologyResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.SetOntology.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.SetOntology.g.cs
index 9590246..e0306e0 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.SetOntology.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.SetOntology.g.cs
@@ -375,17 +375,15 @@ partial void ProcessSetOntologyResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -422,17 +420,15 @@ partial void ProcessSetOntologyResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.UpdateEdge.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateEdge.g.cs
index f1c9691..2af8c3c 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateEdge.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateEdge.g.cs
@@ -371,18 +371,17 @@ partial void ProcessUpdateEdgeResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -409,18 +408,17 @@ partial void ProcessUpdateEdgeResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -447,18 +445,17 @@ partial void ProcessUpdateEdgeResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -492,17 +489,15 @@ partial void ProcessUpdateEdgeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -539,17 +534,15 @@ partial void ProcessUpdateEdgeResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.UpdateGraph.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateGraph.g.cs
index 2f83874..1cfc238 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateGraph.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateGraph.g.cs
@@ -371,18 +371,17 @@ partial void ProcessUpdateGraphResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -409,18 +408,17 @@ partial void ProcessUpdateGraphResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -447,18 +445,17 @@ partial void ProcessUpdateGraphResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseObject = __value_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseObject: __value_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -492,17 +489,15 @@ partial void ProcessUpdateGraphResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Zep.ApiException(
+ throw global::Zep.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
@@ -539,17 +534,15 @@ partial void ProcessUpdateGraphResponseContent(
{
}
- throw new global::Zep.ApiException(
+ throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.UpdateNode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateNode.g.cs
index e15f9af..71deece 100644
--- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateNode.g.cs
+++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateNode.g.cs
@@ -371,18 +371,17 @@ partial void ProcessUpdateNodeResponseContent(
__exception_400 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseObject = __value_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Not Found
if ((int)__response.StatusCode == 404)
@@ -409,18 +408,17 @@ partial void ProcessUpdateNodeResponseContent(
__exception_404 = __ex;
}
- throw new global::Zep.ApiException(
+
+ throw global::Zep.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseObject = __value_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseObject: __value_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
// Internal Server Error
if ((int)__response.StatusCode == 500)
@@ -447,18 +445,17 @@ partial void ProcessUpdateNodeResponseContent(
__exception_500 = __ex;
}
- throw new global::Zep.ApiException