소스 검색

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
+  }
+}