Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

exceptions.py 1.1KB

1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. class RequestAborted(Exception):
  2. """
  3. Raised when the incoming request tells us it's aborted partway through
  4. reading the body.
  5. """
  6. pass
  7. class RequestTimeout(RequestAborted):
  8. """
  9. Aborted specifically due to timeout.
  10. """
  11. pass
  12. class InvalidChannelLayerError(ValueError):
  13. """
  14. Raised when a channel layer is configured incorrectly.
  15. """
  16. pass
  17. class AcceptConnection(Exception):
  18. """
  19. Raised during a websocket.connect (or other supported connection) handler
  20. to accept the connection.
  21. """
  22. pass
  23. class DenyConnection(Exception):
  24. """
  25. Raised during a websocket.connect (or other supported connection) handler
  26. to deny the connection.
  27. """
  28. pass
  29. class ChannelFull(Exception):
  30. """
  31. Raised when a channel cannot be sent to as it is over capacity.
  32. """
  33. pass
  34. class MessageTooLarge(Exception):
  35. """
  36. Raised when a message cannot be sent as it's too big.
  37. """
  38. pass
  39. class StopConsumer(Exception):
  40. """
  41. Raised when a consumer wants to stop and close down its application instance.
  42. """
  43. pass