mirror of
https://gitlab.com/flectra-community/mis-builder.git
synced 2024-11-16 19:22:04 +00:00
18 lines
452 B
Python
18 lines
452 B
Python
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
|
# Copyright 2016 Akretion (<http://akretion.com>)
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
|
|
|
|
|
class DataError(Exception):
|
|
def __init__(self, name, msg):
|
|
super().__init__()
|
|
self.name = name
|
|
self.msg = msg
|
|
|
|
def __repr__(self):
|
|
return "{}({})".format(self.__class__.__name__, repr(self.name))
|
|
|
|
|
|
class NameDataError(DataError):
|
|
pass
|