From fa049cc22c6c7b64b51e6e10b33a259fa58945d7 Mon Sep 17 00:00:00 2001 From: Shagun Agrawal Date: Mon, 2 Dec 2024 20:58:31 +0530 Subject: Refactor schema to separate file --- src/cljcc/exception.clj | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cljcc/exception.clj') 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)))) -- cgit v1.2.3