Skip to content

Commit

Permalink
refactor: introduce WebhookAPIError as an extension of native Error
Browse files Browse the repository at this point in the history
  • Loading branch information
domwebber committed Nov 29, 2023
1 parent 7789ae0 commit cd71c33
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/WebhookAPI/WebhookAPIError.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* WhatsApp NodeJS SDK.
*
* @since 2.0.0
* @author Great Detail Ltd <[email protected]>
* @author Dom Webber <[email protected]>
* @see https://greatdetail.com
*/

export default class WebhookAPIError extends Error {
constructor(message: string) {
super(message);
this.name = "WebhookAPIError";
}
}

0 comments on commit cd71c33

Please sign in to comment.