Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -358,18 +358,17 @@ partial void ProcessCreateAnnotationConfigV1AnnotationConfigsPostResponseContent
__exception_403 = __ex;
}

throw new global::Phoenix.ApiException<string>(

throw global::Phoenix.ApiException<string>.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));
}
// Validation Error
if ((int)__response.StatusCode == 422)
Expand All @@ -396,18 +395,17 @@ partial void ProcessCreateAnnotationConfigV1AnnotationConfigsPostResponseContent
__exception_422 = __ex;
}

throw new global::Phoenix.ApiException<global::Phoenix.HTTPValidationError>(

throw global::Phoenix.ApiException<global::Phoenix.HTTPValidationError>.Create(
statusCode: __response.StatusCode,
message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_422,
statusCode: __response.StatusCode)
{
ResponseBody = __content_422,
ResponseObject = __value_422,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content_422,
responseObject: __value_422,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}

if (__effectiveReadResponseAsString)
Expand Down Expand Up @@ -441,17 +439,15 @@ partial void ProcessCreateAnnotationConfigV1AnnotationConfigsPostResponseContent
}
catch (global::System.Exception __ex)
{
throw new global::Phoenix.ApiException(
throw global::Phoenix.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}
else
Expand Down Expand Up @@ -488,17 +484,15 @@ partial void ProcessCreateAnnotationConfigV1AnnotationConfigsPostResponseContent
{
}

throw new global::Phoenix.ApiException(
throw global::Phoenix.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,18 +353,17 @@ partial void ProcessDeleteAnnotationConfigV1AnnotationConfigsConfigIdDeleteRespo
__exception_403 = __ex;
}

throw new global::Phoenix.ApiException<string>(

throw global::Phoenix.ApiException<string>.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));
}
// Validation Error
if ((int)__response.StatusCode == 422)
Expand All @@ -391,18 +390,17 @@ partial void ProcessDeleteAnnotationConfigV1AnnotationConfigsConfigIdDeleteRespo
__exception_422 = __ex;
}

throw new global::Phoenix.ApiException<global::Phoenix.HTTPValidationError>(

throw global::Phoenix.ApiException<global::Phoenix.HTTPValidationError>.Create(
statusCode: __response.StatusCode,
message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_422,
statusCode: __response.StatusCode)
{
ResponseBody = __content_422,
ResponseObject = __value_422,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content_422,
responseObject: __value_422,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}

if (__effectiveReadResponseAsString)
Expand Down Expand Up @@ -436,17 +434,15 @@ partial void ProcessDeleteAnnotationConfigV1AnnotationConfigsConfigIdDeleteRespo
}
catch (global::System.Exception __ex)
{
throw new global::Phoenix.ApiException(
throw global::Phoenix.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}
else
Expand Down Expand Up @@ -483,17 +479,15 @@ partial void ProcessDeleteAnnotationConfigV1AnnotationConfigsConfigIdDeleteRespo
{
}

throw new global::Phoenix.ApiException(
throw global::Phoenix.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,18 +353,17 @@ partial void ProcessGetAnnotationConfigByNameOrIdV1AnnotationConfigsConfigIdenti
__exception_403 = __ex;
}

throw new global::Phoenix.ApiException<string>(

throw global::Phoenix.ApiException<string>.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));
}
// Validation Error
if ((int)__response.StatusCode == 422)
Expand All @@ -391,18 +390,17 @@ partial void ProcessGetAnnotationConfigByNameOrIdV1AnnotationConfigsConfigIdenti
__exception_422 = __ex;
}

throw new global::Phoenix.ApiException<global::Phoenix.HTTPValidationError>(

throw global::Phoenix.ApiException<global::Phoenix.HTTPValidationError>.Create(
statusCode: __response.StatusCode,
message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_422,
statusCode: __response.StatusCode)
{
ResponseBody = __content_422,
ResponseObject = __value_422,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content_422,
responseObject: __value_422,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}

if (__effectiveReadResponseAsString)
Expand Down Expand Up @@ -436,17 +434,15 @@ partial void ProcessGetAnnotationConfigByNameOrIdV1AnnotationConfigsConfigIdenti
}
catch (global::System.Exception __ex)
{
throw new global::Phoenix.ApiException(
throw global::Phoenix.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}
else
Expand Down Expand Up @@ -483,17 +479,15 @@ partial void ProcessGetAnnotationConfigByNameOrIdV1AnnotationConfigsConfigIdenti
{
}

throw new global::Phoenix.ApiException(
throw global::Phoenix.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}

Expand Down
Loading