Organize and clean up Python implementation.

This commit is contained in:
Cassowary 2024-01-31 09:13:38 -08:00
parent fdc0e876ed
commit 048898566b
1 changed files with 20 additions and 0 deletions

20
python/heck/exceptions.py Normal file
View File

@ -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.
"""