aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/exception.clj
diff options
context:
space:
mode:
authorShagun Agrawal <agrawalshagun07@gmail.com>2024-12-02 20:58:31 +0530
committerShagun Agrawal <agrawalshagun07@gmail.com>2024-12-02 20:58:31 +0530
commitfa049cc22c6c7b64b51e6e10b33a259fa58945d7 (patch)
tree20806700ac0e751fa154df249be0ee87cbb4bb76 /src/cljcc/exception.clj
parent70314ca6f691ea1f547f09d3044a7f2b2a684289 (diff)
Refactor schema to separate file
Diffstat (limited to 'src/cljcc/exception.clj')
-rw-r--r--src/cljcc/exception.clj3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cljcc/exception.clj b/src/cljcc/exception.clj
index bf98ed4..b8b8256 100644
--- a/src/cljcc/exception.clj
+++ b/src/cljcc/exception.clj
@@ -11,5 +11,8 @@
(defn analyzer-error [msg data]
(throw (ex-info msg (merge {:error/type :analyzer} data))))
+(defn tacky-error [msg data]
+ (throw (ex-info msg (merge {:error/type :tacky} data))))
+
(defn compiler-error [msg data]
(throw (ex-info msg (merge {:error/type :compiler} data))))