@line/bot-sdk
Version:
Node.js SDK for LINE Messaging API
31 lines • 843 B
JavaScript
export class SignatureValidationFailed extends Error {
signature;
constructor(message, { signature } = {}) {
super(message);
this.name = this.constructor.name;
Object.assign(this, { signature });
}
}
export class JSONParseError extends Error {
raw;
constructor(message, { raw } = {}) {
super(message);
this.name = this.constructor.name;
Object.assign(this, { raw });
}
}
export class HTTPFetchError extends Error {
status;
statusText;
headers;
body;
constructor(message, { status, statusText, headers, body }) {
super(message);
this.name = this.constructor.name;
this.status = status;
this.statusText = statusText;
this.headers = headers;
this.body = body;
}
}
//# sourceMappingURL=exceptions.js.map