hakumizuki 4 tahun lalu
induk
melakukan
3ccd3035e8
1 mengubah file dengan 12 tambahan dan 0 penghapusan
  1. 12 0
      packages/slack/src/interfaces/http-errors.ts

+ 12 - 0
packages/slack/src/interfaces/http-errors.ts

@@ -0,0 +1,12 @@
+import { HttpError } from 'http-errors';
+
+export class CustomHttpError extends Error {
+
+  httpError: HttpError
+
+  constructor(httpError: HttpError) {
+    super(httpError.message);
+    this.httpError = httpError;
+  }
+
+}