[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 19/20] python/qemu/qmp.py: Straighten out exception hierarchy
From: |
Kevin Wolf |
Subject: |
Re: [PATCH 19/20] python/qemu/qmp.py: Straighten out exception hierarchy |
Date: |
Wed, 7 Oct 2020 14:53:56 +0200 |
Am 07.10.2020 um 01:58 hat John Snow geschrieben:
> Be a little more rigorous about which exception we use, and when.
> Primarily, this makes QMPCapabilitiesError an extension of
> QMPprotocolError.
>
> The family of errors:
>
> QMPError (generic base)
> QMPConnectError (For connection issues)
> QMPTimeoutError (when waiting for an event expires)
> QMPProtocolError (unexpected/garbled responses)
> QMPCapabilitiesError (handshake problems)
> QMPResponseError (For in-band QMP error returns)
>
> Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
- Re: [PATCH 14/20] python/qemu/console_socket.py: Clarify type of drain_thread, (continued)
- [PATCH 15/20] python/qemu/console_socket.py: Add type hint annotations, John Snow, 2020/10/06
- [PATCH 16/20] python/console_socket: avoid encoding to/from string, John Snow, 2020/10/06
- [PATCH 17/20] python/qemu/qmp.py: Preserve error context on re-raise, John Snow, 2020/10/06
- [PATCH 19/20] python/qemu/qmp.py: Straighten out exception hierarchy, John Snow, 2020/10/06
- Re: [PATCH 19/20] python/qemu/qmp.py: Straighten out exception hierarchy,
Kevin Wolf <=
- [PATCH 18/20] python/qemu/qmp.py: re-raise OSError when encountered, John Snow, 2020/10/06
- [PATCH 20/20] python: add mypy config, John Snow, 2020/10/06
- Re: [PATCH 00/20] python/qemu: strictly typed mypy conversion, pt2, John Snow, 2020/10/08