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 @@ -360,18 +360,17 @@ partial void ProcessAuthJwtLoginApiV1AuthJwtLoginPostResponseContent(
__exception_400 = __ex;
}

throw new global::Presenton.ApiException<global::Presenton.ErrorModel>(

throw global::Presenton.ApiException<global::Presenton.ErrorModel>.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));
}
// Validation Error
if ((int)__response.StatusCode == 422)
Expand All @@ -398,18 +397,17 @@ partial void ProcessAuthJwtLoginApiV1AuthJwtLoginPostResponseContent(
__exception_422 = __ex;
}

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

throw global::Presenton.ApiException<global::Presenton.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 @@ -443,17 +441,15 @@ partial void ProcessAuthJwtLoginApiV1AuthJwtLoginPostResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Presenton.ApiException(
throw global::Presenton.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 @@ -490,17 +486,15 @@ partial void ProcessAuthJwtLoginApiV1AuthJwtLoginPostResponseContent(
{
}

throw new global::Presenton.ApiException(
throw global::Presenton.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 @@ -336,17 +336,16 @@ partial void ProcessAuthJwtLogoutApiV1AuthJwtLogoutPostResponseContent(
__exception_401 = __ex;
}

throw new global::Presenton.ApiException(

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

if (__effectiveReadResponseAsString)
Expand Down Expand Up @@ -378,17 +377,15 @@ partial void ProcessAuthJwtLogoutApiV1AuthJwtLogoutPostResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Presenton.ApiException(
throw global::Presenton.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 @@ -423,17 +420,15 @@ partial void ProcessAuthJwtLogoutApiV1AuthJwtLogoutPostResponseContent(
{
}

throw new global::Presenton.ApiException(
throw global::Presenton.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 @@ -352,18 +352,17 @@ partial void ProcessAuthorizeApiV1AuthGoogleAuthorizeGetResponseContent(
__exception_422 = __ex;
}

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

throw global::Presenton.ApiException<global::Presenton.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 @@ -397,17 +396,15 @@ partial void ProcessAuthorizeApiV1AuthGoogleAuthorizeGetResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Presenton.ApiException(
throw global::Presenton.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 @@ -444,17 +441,15 @@ partial void ProcessAuthorizeApiV1AuthGoogleAuthorizeGetResponseContent(
{
}

throw new global::Presenton.ApiException(
throw global::Presenton.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