diff --git a/python/heck/exceptions.py b/python/heck/exceptions.py new file mode 100644 index 0000000..389e113 --- /dev/null +++ b/python/heck/exceptions.py @@ -0,0 +1,20 @@ +""" +Exceptions for HECKfile processing. +""" + +class HeckException (BaseException): + """ + Base exception for HECKfile processing. + """ + + +class HeckParseException(HeckException): + """ + Raised for parse errors specifically. + """ + + +class HeckLexException(HeckException): + """ + Raised for lex errors specifically. + """