Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit acea74f

Browse files
committed
Expain SynapseError and FederationError better
Spawning from #13816 (comment)
1 parent 616dcc1 commit acea74f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

synapse/api/errors.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ def __init__(self, location: bytes, http_code: int = http.FOUND):
156156
class SynapseError(CodeMessageException):
157157
"""A base exception type for matrix errors which have an errcode and error
158158
message (as well as an HTTP status code).
159+
TODO
159160
160161
Attributes:
161162
errcode: Matrix error code e.g 'M_FORBIDDEN'
@@ -602,6 +603,7 @@ def cs_error(msg: str, code: str = Codes.UNKNOWN, **kwargs: Any) -> "JsonDict":
602603
class FederationError(RuntimeError):
603604
"""This class is used to inform remote homeservers about erroneous
604605
PDUs they sent us.
606+
TODO
605607
606608
FATAL: The remote server could not interpret the source event.
607609
(e.g., it was missing a required field)

0 commit comments

Comments
 (0)