aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/exception.clj
diff options
context:
space:
mode:
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 9ea5f31..bf98ed4 100644
--- a/src/cljcc/exception.clj
+++ b/src/cljcc/exception.clj
@@ -10,3 +10,6 @@
(defn analyzer-error [msg data]
(throw (ex-info msg (merge {:error/type :analyzer} data))))
+
+(defn compiler-error [msg data]
+ (throw (ex-info msg (merge {:error/type :compiler} data))))