exceptions.py 422 B

123456789101112131415
  1. # This file is dual licensed under the terms of the Apache License, Version
  2. # 2.0, and the MIT License. See the LICENSE file in the root of this
  3. # repository for complete details.
  4. """
  5. Exceptions factored out to avoid import loops.
  6. """
  7. class DropEvent(BaseException):
  8. """
  9. If raised by an processor, the event gets silently dropped.
  10. Derives from BaseException because it's technically not an error.
  11. """