mirror of
https://github.com/django/daphne.git
synced 2025-10-25 04:51:05 +03:00
Update documentation Ensure send is not available on demultiplexed consumer classes Data binding needs fixing
47 lines
1.0 KiB
Python
47 lines
1.0 KiB
Python
class ConsumeLater(Exception):
|
|
"""
|
|
Exception that says that the current message should be re-queued back
|
|
onto its channel as it's not ready to be consumd yet (e.g. global order
|
|
is being enforced)
|
|
"""
|
|
pass
|
|
|
|
|
|
class ResponseLater(Exception):
|
|
"""
|
|
Exception raised inside a Django view when the view has passed
|
|
responsibility for the response to another consumer, and so is not
|
|
returning a response.
|
|
"""
|
|
pass
|
|
|
|
|
|
class RequestTimeout(Exception):
|
|
"""
|
|
Raised when it takes too long to read a request body.
|
|
"""
|
|
pass
|
|
|
|
|
|
class RequestAborted(Exception):
|
|
"""
|
|
Raised when the incoming request tells us it's aborted partway through
|
|
reading the body.
|
|
"""
|
|
pass
|
|
|
|
|
|
class DenyConnection(Exception):
|
|
"""
|
|
Raised during a websocket.connect (or other supported connection) handler
|
|
to deny the connection.
|
|
"""
|
|
pass
|
|
|
|
|
|
class SendNotAvailableOnDemultiplexer(Exception):
|
|
"""
|
|
Raised when trying to send with a WebsocketDemultiplexer. Use the multiplexer instead.
|
|
"""
|
|
pass
|