2022-11-30 23:50:43 +01:00
|
|
|
# See LICENSE for licensing information.
|
|
|
|
|
#
|
2023-01-29 07:56:27 +01:00
|
|
|
# Copyright (c) 2016-2023 Regents of the University of California, Santa Cruz
|
2022-11-30 23:50:43 +01:00
|
|
|
# All rights reserved.
|
|
|
|
|
#
|
2020-04-09 01:55:45 +02:00
|
|
|
|
|
|
|
|
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
|