Organize and clean up Python implementation.
This commit is contained in:
20
python/heck/exceptions.py
Normal file
20
python/heck/exceptions.py
Normal 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.
|
||||||
|
"""
|
Reference in New Issue
Block a user