hakumizuki пре 4 година
родитељ
комит
3ccd3035e8
1 измењених фајлова са 12 додато и 0 уклоњено
  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;
+  }
+
+}