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