From 048898566bd809040d89a762799b9cf1bfd2a4be Mon Sep 17 00:00:00 2001 From: Cassowary Date: Wed, 31 Jan 2024 09:13:38 -0800 Subject: [PATCH] Organize and clean up Python implementation. --- python/heck/exceptions.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 python/heck/exceptions.py 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. + """