From b51ed9b9736eb0b333585b0b9cb1797054c4b69f Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Sun, 4 Sep 2022 14:02:19 +1200 Subject: Custom exceptions are a bit more robust --- src/util.cr | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/util.cr') 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 -- cgit v1.2.1