mail/tools/alias_error.py
Данил Воробьев 6e6f15d803 initial commit
2024-05-03 09:40:35 +00:00

19 lines
543 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from dataclasses import dataclass, field
@dataclass(frozen=True)
class AliasError:
"""Alias error description.
Arguments:
code (str): error code
message (str): translated user message
is_config_error (bool): whether the error was caused by a mis-configured alias or not
"""
code: str
message: str = field(default='', compare=False)
is_config_error: bool = field(default=False, compare=False)