File size: 589 Bytes
079c32c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
from abc import ABCMeta, abstractmethod
from typing import List, Union, Tuple
INDEX_TYPING = Union[int, str]
ERROR_ITEM_TYPING = Tuple[INDEX_TYPING, Exception]
ERROR_ITEMS = List[ERROR_ITEM_TYPING]
class CompositeStructureError(ValueError, metaclass=ABCMeta):
"""
Overview:
Composite structure error.
Interfaces:
``__init__``, ``errors``
Properties:
``errors``
"""
@property
@abstractmethod
def errors(self) -> ERROR_ITEMS:
"""
Overview:
Get the errors.
"""
raise NotImplementedError
|