Add exception errors file

This commit is contained in:
mrg 2020-04-08 16:55:45 -07:00
parent 0c27942bb2
commit ade3b78711
1 changed files with 15 additions and 0 deletions

15
compiler/base/errors.py Normal file
View File

@ -0,0 +1,15 @@
class drc_error(Exception):
"""Exception raised for DRC errors.
Attributes:
expression -- input expression in which the error occurred
message -- explanation of the error
"""
# def __init__(self, expression, message):
# self.expression = expression
# self.message = message
def __init__(self, message):
self.message = message