diff options
| author | Shagun Agrawal <agrawalshagun07@gmail.com> | 2024-12-02 20:58:31 +0530 |
|---|---|---|
| committer | Shagun Agrawal <agrawalshagun07@gmail.com> | 2024-12-02 20:58:31 +0530 |
| commit | fa049cc22c6c7b64b51e6e10b33a259fa58945d7 (patch) | |
| tree | 20806700ac0e751fa154df249be0ee87cbb4bb76 /src/cljcc/exception.clj | |
| parent | 70314ca6f691ea1f547f09d3044a7f2b2a684289 (diff) | |
Refactor schema to separate file
Diffstat (limited to 'src/cljcc/exception.clj')
| -rw-r--r-- | src/cljcc/exception.clj | 3 |
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)))) |
