Normalized imports, regenerated

This commit is contained in:
Luke Hagar
2024-09-08 03:06:14 +00:00
parent 4d8ee6c199
commit 244adab882
1008 changed files with 21410 additions and 19981 deletions

View File

@@ -0,0 +1,25 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
export class SDKError extends Error {
public readonly statusCode: number;
public readonly contentType: string;
constructor(
message: string,
public readonly rawResponse: Response,
public readonly body: string = ""
) {
const statusCode = rawResponse.status;
const contentType = rawResponse.headers.get("content-type") || "";
const bodyString = body.length > 0 ? `\n${body}` : "";
super(`${message}: Status ${statusCode} Content-Type ${contentType} Body ${bodyString}`);
this.statusCode = statusCode;
this.contentType = contentType;
this.name = "SDKError";
}
}