浏览代码

subclass Error for queries

Jason Gorst 1 月之前
父节点
当前提交
28151ceda9
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      app/utils/QueryError.js

+ 7 - 0
app/utils/QueryError.js

@@ -0,0 +1,7 @@
+export default class QueryError extends Error {
+  constructor(message, options) {
+    super(message, options)
+    this.name = "QueryError"
+    this.key = options?.key
+  }
+}