mirror of
https://github.com/nexus-stc/hyperboria
synced 2025-01-25 18:07:34 +01:00
dd23846059
- [nexus] Switch bot - [bot] Added extra receivers functionality GitOrigin-RevId: 68fc32d3e79ff411758f54f435fe8680fc42dead
18 lines
445 B
Python
18 lines
445 B
Python
from typing import List
|
|
|
|
from izihawa_utils.exceptions import BaseError
|
|
|
|
|
|
class InterruptProcessing(BaseError):
|
|
code = 'interrupt_processing'
|
|
|
|
def __init__(self, document_id, reason):
|
|
super().__init__(document_id=document_id, reason=reason)
|
|
|
|
|
|
class ConflictError(BaseError):
|
|
code = 'conflict_error'
|
|
|
|
def __init__(self, document, duplicates: List[dict]):
|
|
super().__init__(document=document, duplicates=duplicates)
|