screenshotone-api-sdk
Version:
Use ScreenshotOne.com API to generate screenshots of any website.
16 lines (13 loc) • 560 B
text/typescript
export default class APIError extends Error {
public readonly httpStatusCode?: number;
public readonly errorCode?: string;
public readonly errorMessage?: string;
public readonly documentationUrl?: string;
constructor(message: string, httpStatusCode?: number, errorCode?: string, errorMessage?: string, documentationUrl?: string) {
super(message);
this.httpStatusCode = httpStatusCode;
this.errorCode = errorCode;
this.errorMessage = errorMessage;
this.documentationUrl = documentationUrl;
}
}