mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Default error code BAD_PAGINATION for EventStreamErrors
This commit is contained in:
parent
d253a35539
commit
2a793a6c42
@ -74,7 +74,10 @@ class AuthError(SynapseError):
|
|||||||
|
|
||||||
class EventStreamError(SynapseError):
|
class EventStreamError(SynapseError):
|
||||||
"""An error raised when there a problem with the event stream."""
|
"""An error raised when there a problem with the event stream."""
|
||||||
pass
|
def __init__(self, *args, **kwargs):
|
||||||
|
if "errcode" not in kwargs:
|
||||||
|
kwargs["errcode"] = Codes.BAD_PAGINATION
|
||||||
|
super(EventStreamError, self).__init__(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class LoginError(SynapseError):
|
class LoginError(SynapseError):
|
||||||
|
Loading…
Reference in New Issue
Block a user