summaryrefslogtreecommitdiff
path: root/src/util.cr
diff options
context:
space:
mode:
authorMatthew Hall <hallmatthew314@gmail.com>2022-09-04 14:02:19 +1200
committerMatthew Hall <hallmatthew314@gmail.com>2022-09-04 14:02:19 +1200
commitb51ed9b9736eb0b333585b0b9cb1797054c4b69f (patch)
tree1b947d5672bc1d53c0cc9fdc0eacb0d64db3b5c2 /src/util.cr
parent8dfc184c00f7c04e70f861914a944e3dbee3a136 (diff)
Custom exceptions are a bit more robust
Diffstat (limited to 'src/util.cr')
-rw-r--r--src/util.cr14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/util.cr b/src/util.cr
index 841a2b2..8c5df5c 100644
--- a/src/util.cr
+++ b/src/util.cr
@@ -1,5 +1,17 @@
module Util
- class ParserError < Exception
+ class FlintError < Exception
+ end
+
+ class ParserError < FlintError
+ end
+
+ class InterpreterError < FlintError
+ end
+
+ class CompilerError < FlintError
+ end
+
+ class NoCompilerAvailableError < CompilerError
end
end