Add ir.message and use custom exceptions

issue3672
This commit is contained in:
Cédric Krier committed 2018-12-29 14:20:29 +01:00
1 parent f301ebdf26
commit 432a6cdbd5
7 files changed
+121 -34

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.exceptions import UserError, UserWarning
class ImportStatementError(UserError):
pass
class StatementValidateError(UserError):
pass
class StatementValidateWarning(UserWarning):
pass
class StatementPostError(UserError):
pass