mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-03 08:22:53 +01:00
8472f27ec5
GitOrigin-RevId: ddf02e70d2827c048db49b687ebbcdcc67807ca6
18 lines
430 B
Python
18 lines
430 B
Python
from typing import List
|
|
|
|
from izihawa_utils.exceptions import BaseError
|
|
|
|
|
|
class InterruptProcessing(BaseError):
|
|
code = 'interrupt_processing'
|
|
|
|
def __init__(self, doc_id, reason):
|
|
super().__init__(doc_id=doc_id, reason=reason)
|
|
|
|
|
|
class ConflictError(BaseError):
|
|
code = 'conflict_error'
|
|
|
|
def __init__(self, document, duplicates: List[dict]):
|
|
super().__init__(document=document, duplicates=duplicates)
|