Exceptions and Warnings¶
Exceptions¶
- class qtrio.NoOutcomesError[source]¶
Bases:
QTrioExceptionRaised if you try to unwrap a
qtrio.Outcomeswhich has no outcomes.
- class qtrio.EventTypeRegistrationError[source]¶
Bases:
QTrioExceptionBase class for various event type registration exceptions to inherit from.
- class qtrio.EventTypeRegistrationFailedError[source]¶
Bases:
EventTypeRegistrationErrorRaised if the attempt to register a new event type fails.
Bases:
EventTypeRegistrationErrorRaised if the requested event type is unavailable.
- class qtrio.EventTypeAlreadyRegisteredError[source]¶
Bases:
EventTypeRegistrationErrorRaised when a request is made to register an event type but a type has already been registered previously.
- class qtrio.ReturnCodeError[source]¶
Bases:
QTrioExceptionWraps a QApplication return code as an exception.
- class qtrio.InternalError[source]¶
Bases:
QTrioExceptionRaised when an internal state is inconsistent.
- class qtrio.UserCancelledError[source]¶
Bases:
QTrioExceptionRaised when a user requested cancellation of an operation.
- class qtrio.InvalidInputError[source]¶
Bases:
QTrioExceptionRaised when invalid input is provided such as via a dialog.
Warnings¶
- class qtrio.QTrioWarning[source]¶
Bases:
UserWarningBase warning for all QTrio warnings.
- class qtrio.ApplicationQuitWarning[source]¶
Bases:
QTrioWarningEmitted when the Qt application quits but QTrio is expecting to manage the application lifetime. See the documentation on the application lifetime for more information.