mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-17 08:42:20 -04:00
Update the error code for duplicate annotation (#15075)
This commit is contained in:
parent
06ba71083e
commit
5febf88b6c
3 changed files with 11 additions and 1 deletions
|
@ -108,6 +108,10 @@ class Codes(str, Enum):
|
|||
|
||||
USER_AWAITING_APPROVAL = "ORG.MATRIX.MSC3866_USER_AWAITING_APPROVAL"
|
||||
|
||||
# Attempt to send a second annotation with the same event type & annotation key
|
||||
# MSC2677
|
||||
DUPLICATE_ANNOTATION = "M_DUPLICATE_ANNOTATION"
|
||||
|
||||
|
||||
class CodeMessageException(RuntimeError):
|
||||
"""An exception with integer code and message string attributes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue