Files

110 lines
1.6 KiB
Python
Raw Permalink Normal View History

2018-12-29 14:20:28 +01:00
# 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
from trytond.model.exceptions import ValidationError
class PeriodNotFoundError(UserError):
pass
class PeriodValidationError(ValidationError):
pass
class ClosePeriodError(PeriodValidationError):
pass
class PeriodDatesError(PeriodValidationError):
pass
class FiscalYearNotFoundError(UserError):
pass
class FiscalYearCloseError(UserError):
pass
class FiscalYearReOpenError(UserError):
pass
class JournalMissing(UserError):
pass
2018-12-29 14:20:28 +01:00
class AccountMissing(UserError):
pass
class AccountValidationError(ValidationError):
pass
class SecondCurrencyError(AccountValidationError):
2018-12-29 14:20:28 +01:00
pass
class ChartWarning(UserWarning):
pass
class PostError(UserError):
pass
2022-02-02 15:42:34 +01:00
class MoveTemplateExpressionError(UserError):
pass
class MoveTemplateKeywordValidationError(ValidationError):
pass
2024-06-26 09:39:26 +02:00
class CopyWarning(UserWarning):
pass
2018-12-29 14:20:28 +01:00
class CancelWarning(UserWarning):
pass
class ReconciliationError(ValidationError):
pass
2019-04-12 19:43:53 +02:00
class ReconciliationDeleteWarning(UserWarning):
2019-04-12 19:43:53 +02:00
pass
2019-11-18 12:24:37 +01:00
class CancelDelegatedWarning(UserWarning):
pass
2019-04-12 19:43:53 +02:00
class GroupLineError(UserError):
pass
2021-08-20 23:45:02 +02:00
class GroupLineWarning(UserWarning):
pass
2022-01-26 00:32:20 +01:00
class RescheduleLineError(UserError):
2021-08-20 23:45:02 +02:00
pass
class RescheduleLineWarning(UserWarning):
pass
class DelegateLineError(UserError):
pass
class DelegateLineWarning(UserWarning):
pass