From cd0d4db830ceb1a1374ecd971fa80cb156621374 Mon Sep 17 00:00:00 2001 From: danbulant Date: Sun, 16 Feb 2020 14:48:51 +0100 Subject: [PATCH] Base error class --- client/src/errors/error.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 client/src/errors/error.ts diff --git a/client/src/errors/error.ts b/client/src/errors/error.ts new file mode 100644 index 0000000..64c95a6 --- /dev/null +++ b/client/src/errors/error.ts @@ -0,0 +1,8 @@ +class BaseError extends Error { + constructor(m: string) { + super(m); + Object.setPrototypeOf(this, BaseError.prototype); + } +} + +export default BaseError; \ No newline at end of file