hakumizuki %!s(int64=4) %!d(string=hai) anos
pai
achega
3ccd3035e8
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  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;
+  }
+
+}