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 @@ -354,17 +354,16 @@ await AdminCreateBotAsResponseAsync(
__exception_default = __ex;
}

throw new global::Botpress.ApiException(

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

if (__effectiveReadResponseAsString)
Expand All @@ -391,17 +390,15 @@ await AdminCreateBotAsResponseAsync(
}
catch (global::System.Exception __ex)
{
throw new global::Botpress.ApiException(
throw global::Botpress.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 @@ -429,17 +426,15 @@ await AdminCreateBotAsResponseAsync(
{
}

throw new global::Botpress.ApiException(
throw global::Botpress.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 @@ -354,17 +354,16 @@ await AdminCreateIntegrationAsResponseAsync(
__exception_default = __ex;
}

throw new global::Botpress.ApiException(

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

if (__effectiveReadResponseAsString)
Expand All @@ -391,17 +390,15 @@ await AdminCreateIntegrationAsResponseAsync(
}
catch (global::System.Exception __ex)
{
throw new global::Botpress.ApiException(
throw global::Botpress.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 @@ -429,17 +426,15 @@ await AdminCreateIntegrationAsResponseAsync(
{
}

throw new global::Botpress.ApiException(
throw global::Botpress.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 @@ -344,17 +344,16 @@ await AdminCreateWorkspaceAsResponseAsync(
__exception_default = __ex;
}

throw new global::Botpress.ApiException(

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

if (__effectiveReadResponseAsString)
Expand All @@ -381,17 +380,15 @@ await AdminCreateWorkspaceAsResponseAsync(
}
catch (global::System.Exception __ex)
{
throw new global::Botpress.ApiException(
throw global::Botpress.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 @@ -419,17 +416,15 @@ await AdminCreateWorkspaceAsResponseAsync(
{
}

throw new global::Botpress.ApiException(
throw global::Botpress.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 @@ -354,17 +354,16 @@ await AdminCreateWorkspaceMemberAsResponseAsync(
__exception_default = __ex;
}

throw new global::Botpress.ApiException(

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

if (__effectiveReadResponseAsString)
Expand All @@ -391,17 +390,15 @@ await AdminCreateWorkspaceMemberAsResponseAsync(
}
catch (global::System.Exception __ex)
{
throw new global::Botpress.ApiException(
throw global::Botpress.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 @@ -429,17 +426,15 @@ await AdminCreateWorkspaceMemberAsResponseAsync(
{
}

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