asyncutils.exceptions¶
Exception handling utilties and exception classes used by this module.
Attributes¶
The tuple ( |
|
Instance of |
|
Instance of |
|
Instance of |
|
Instance of |
|
Instance of |
|
Instance of |
|
Instance of |
Exceptions¶
Raised when there is an error in bulkhead processing. |
|
Raised when a bulkhead is full and a party requests it to execute a coroutine. |
|
Raised when a bulkhead is being shut down and a party requests it to execute a coroutine. |
|
Raised when an operation on an |
|
Raised when an event bus fails to publish an event. |
|
Raised when subscription or publishing operations are called on an |
|
Raised when attempting to access publishing statistics on an |
|
Raised when an |
|
Base class for circuit breaker errors. |
|
Raised when a circuit exceeds its maximum calls in the half-open state. |
|
Raised when a circuit is open in a |
|
Raised when a critical error is encountered by exception-handling middleware. |
|
Raised when a party attempts to get the value an event of which the value is not set. |
|
A forbidden operation was attempted on a password-protected queue. |
|
Raised after an internal party discovers an external party has set the result of a future whose result is for it to set only. |
|
The get password was not passed to the get methods of a get-protected queue. |
|
Raised when |
|
Raised when an asynchronous iterable runs out of items to take or collect. |
|
Thrown to coroutines that acquire locks when a locksmith (inheriting from |
|
Raised when a function has reached the specified maximum iterations. |
|
Raised when the wrong password is provided to the get or put methods of a password-protected queue. |
|
Base class of |
|
Base class for all errors related to password-protected queues, as returned by |
|
Raised when |
|
Raised when a task pool encounters a miscellaneous error. |
|
Raised when the task queue in a task pool is filled. |
|
Raised when submissions are sent to a shutting down pool. |
|
The put password was not passed to the put methods of a put-protected queue. |
|
Raised when |
|
Raised when a call to a function exceeds its rate limit and waiting is not allowed. |
|
Raised when the module-internal state is corrupted, usually by a slip-up of some abstraction layer outside of this library, and an exception can be thrown. Should not be caught by users. |
|
Base class for errors thrown when attempting to normalize an object to a version. |
|
Raised when internal state consistency checks of a version fail, indicating modifications by the user affected private state. |
|
Base class for all version-related errors. |
|
Wraps any errors thrown by a custom normalizer, intentionally or otherwise. |
|
Raised when no normalizer is registered for an unrecognized object. |
|
Raised when a custom normalizer returns anything but an iterable of integers. |
|
Raised when an argument passed to the |
|
Raised when the wrong password of the correct type is provided to the get or put methods of a password-protected queue. |
|
Raised when the password provided to the get or put methods of a password-protected queue is of the incorrect type. |
Classes¶
Context manager to suppress errors of the specified types and exit once they occur; works in both sync and async. More customizable than |
|
Context manager to convert specific warnings to errors; works in both sync and async. |
Functions¶
|
Whether the object is actually a sentinel for an exception, described above. |
|
|
|
Programmatically raise an exception. The variadic |
|
|
|
Basically the above but in reverse order, with rare edge cases. More memory- and time-efficient than unnest. |
|
Recover the exception wrapped by |
|
Wrap an exception in a special proxy |
Module Contents¶
- exception asyncutils.exceptions.BulkheadError[source]¶
Bases:
RuntimeErrorRaised when there is an error in bulkhead processing.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.BulkheadFull[source]¶
Bases:
BulkheadErrorRaised when a bulkhead is full and a party requests it to execute a coroutine.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.BulkheadShutDown[source]¶
Bases:
BulkheadErrorRaised when a bulkhead is being shut down and a party requests it to execute a coroutine.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.BusError[source]¶
Bases:
RuntimeErrorRaised when an operation on an
EventBusfails.Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.BusPublishingError(bus: asyncutils.channels.EventBus, mw: asyncutils._internal.types.Middleware, /)[source]¶
Bases:
BusErrorRaised when an event bus fails to publish an event.
Initialize self. See help(type(self)) for accurate signature.
- property bus: asyncutils.channels.EventBus | None¶
May be
Noneif the event bus was garbage-collected.
- property middleware: asyncutils._internal.types.Middleware | None¶
May be
Noneif the middleware was garbage-collected.
- exception asyncutils.exceptions.BusShutDown[source]¶
Bases:
BusErrorRaised when subscription or publishing operations are called on an
EventBusthat is closing down.Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.BusStatsError[source]¶
Bases:
BusErrorRaised when attempting to access publishing statistics on an
EventBuswhose statistics are not tracked.Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.BusTimeout[source]¶
Bases:
BusErrorRaised when an
EventBustakes too long to publish an event.Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.CircuitBreakerError[source]¶
Bases:
RuntimeErrorBase class for circuit breaker errors.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.CircuitHalfOpen[source]¶
Bases:
CircuitBreakerErrorRaised when a circuit exceeds its maximum calls in the half-open state.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.CircuitOpen[source]¶
Bases:
CircuitBreakerErrorRaised when a circuit is open in a
CircuitBreaker(but shouldn’t be).Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.Critical[E: (SystemExit, SystemError, KeyboardInterrupt)](exc: E)[source]¶
- exception asyncutils.exceptions.Critical(exc: None = ...)
Bases:
BaseExceptionRaised when a critical error is encountered by exception-handling middleware.
Initialize the critical exception with the exception being wrapped, or the currently handled exception if not passed.
- property exc: E¶
The exception that occurred, determined by the raising scope by default.
- exception asyncutils.exceptions.EventValueError[source]¶
Bases:
ValueErrorRaised when a party attempts to get the value an event of which the value is not set.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.ForbiddenOperation(op: str, *a: object)[source]¶
Bases:
PasswordQueueError,TypeErrorA forbidden operation was attempted on a password-protected queue.
Substitute in the arguments to the string (if any) to derive the name of the forbidden operation.
- exception asyncutils.exceptions.FutureCorrupted[source]¶
Bases:
RuntimeErrorRaised after an internal party discovers an external party has set the result of a future whose result is for it to set only.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.GetPasswordMissing[source]¶
Bases:
PasswordMissingThe get password was not passed to the get methods of a get-protected queue.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.GetPasswordRetrievalError(from_: str)[source]¶
Bases:
PasswordRetrievalErrorRaised when
password_queue()cannot find the get password from the closure variables.Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.ItemsExhausted[source]¶
Bases:
ValueErrorRaised when an asynchronous iterable runs out of items to take or collect.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.LockForceRequest[T, L: asyncutils._internal.types.AsyncLockLike[Any], R: asyncutils.locksmiths.LocksmithBase](requester: R, fulfill: collections.abc.Callable[[Any], None], lock: L, info: T, /)[source]¶
Bases:
BaseExceptionThrown to coroutines that acquire locks when a locksmith (inheriting from
locksmiths.LocksmithBase) necessitates the lock be released.Initialize self. See help(type(self)) for accurate signature.
- fulfill(answer: object, /) None¶
Answer the request with
answer, after presumably releasing the lock and performing error handling.
- property info: T¶
The info passed to the
force()method, or as returned byget_info(). Coerced tostras a note attached on this exception whentracebackprints it.
- property lock: L¶
The lock involved.
- property requester: R¶
The locksmith that sent this error.
- exception asyncutils.exceptions.MaxIterationsError[source]¶
Bases:
RuntimeErrorRaised when a function has reached the specified maximum iterations.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.PasswordError[T][source]¶
Bases:
PasswordQueueErrorRaised when the wrong password is provided to the get or put methods of a password-protected queue.
Initialize self. See help(type(self)) for accurate signature.
- property qid: int¶
The memory address of the queue associated with the exception. Invalid if the queue has been garbage collected.
- property wrongpass: T¶
The wrong password associated with the exception. May be
Noneif the wrong password has been garbage collected.
- exception asyncutils.exceptions.PasswordMissing[source]¶
Bases:
PasswordQueueError,TypeErrorBase class of
GetPasswordMissingandPutPasswordMissing.Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.PasswordQueueError[source]¶
Bases:
ExceptionBase class for all errors related to password-protected queues, as returned by
password_queue().Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.PasswordRetrievalError(from_: str)[source]¶
Bases:
PasswordQueueErrorRaised when
password_queue()cannot find the password from the closure variables.Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.PoolError[source]¶
Bases:
RuntimeErrorRaised when a task pool encounters a miscellaneous error.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.PoolFull[source]¶
Bases:
PoolErrorRaised when the task queue in a task pool is filled.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.PoolShutDown[source]¶
Bases:
PoolErrorRaised when submissions are sent to a shutting down pool.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.PutPasswordMissing[source]¶
Bases:
PasswordMissingThe put password was not passed to the put methods of a put-protected queue.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.PutPasswordRetrievalError(from_: str)[source]¶
Bases:
PasswordRetrievalErrorRaised when
password_queue()cannot find the put password from the closure variables.Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.RateLimitExceeded[source]¶
Bases:
RuntimeErrorRaised when a call to a function exceeds its rate limit and waiting is not allowed.
Implementation detail
The initialization signature may change without notice, and is therefore not documented here.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.StateCorrupted(adjective: str, details: str, /)[source]¶
Bases:
BaseExceptionRaised when the module-internal state is corrupted, usually by a slip-up of some abstraction layer outside of this library, and an exception can be thrown. Should not be caught by users.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.VersionConversionError[source]¶
Bases:
VersionErrorBase class for errors thrown when attempting to normalize an object to a version.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.VersionCorrupted(obj: asyncutils.version.VersionInfo, /)[source]¶
Bases:
VersionError,RuntimeErrorRaised when internal state consistency checks of a version fail, indicating modifications by the user affected private state.
Initialize self. See help(type(self)) for accurate signature.
- property obj: asyncutils.version.VersionInfo | None¶
The instance of
VersionInfohaving been corrupted.Noneif garbage collected.
- exception asyncutils.exceptions.VersionError[source]¶
Bases:
ExceptionBase class for all version-related errors.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.VersionNormalizerFault[T](
- normalizer: collections.abc.Callable[[T], collections.abc.Iterable[int]],
- obj: T,
- exc: BaseException,
- /,
Bases:
VersionConversionErrorWraps any errors thrown by a custom normalizer, intentionally or otherwise.
Initialize self. See help(type(self)) for accurate signature.
- property exc: BaseException | None¶
The exception thrown.
Noneif garbage collected.
- property normalizer: collections.abc.Callable[[T], collections.abc.Iterable[int]] | None¶
The normalizer at fault.
Noneif garbage collected.
- exception asyncutils.exceptions.VersionNormalizerMissing[T](obj: T, /)[source]¶
Bases:
VersionConversionError,TypeErrorRaised when no normalizer is registered for an unrecognized object.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.VersionNormalizerTypeError[T](normalizer: collections.abc.Callable[[T], object], obj: T, /)[source]¶
Bases:
VersionConversionError,TypeErrorRaised when a custom normalizer returns anything but an iterable of integers.
Initialize self. See help(type(self)) for accurate signature.
- property normalizer: collections.abc.Callable[[T], Any] | None¶
The normalizer at fault.
Noneif garbage collected.
- exception asyncutils.exceptions.VersionValueError[source]¶
Bases:
VersionConversionError,ValueErrorRaised when an argument passed to the
VersionInfoconstructor is negative, for instance.Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.WrongPassword[T](queue: asyncutils._internal.types.QProt[Any, Any, Any], pwd: T, /)[source]¶
Bases:
PasswordError[T],ValueErrorRaised when the wrong password of the correct type is provided to the get or put methods of a password-protected queue.
Initialize self. See help(type(self)) for accurate signature.
- exception asyncutils.exceptions.WrongPasswordType[T, R: type](
- queue: asyncutils._internal.types.QProt[Any, Any, Any] | None,
- pwd: T,
- wrongtyp: type[T],
- correcttyp: R,
- /,
Bases:
PasswordError[T],TypeErrorRaised when the password provided to the get or put methods of a password-protected queue is of the incorrect type.
Initialize self. See help(type(self)) for accurate signature.
- class asyncutils.exceptions.IgnoreErrors(
- /,
- *exc: asyncutils._internal.types.ExcType,
- exclude: collections.abc.Iterable[asyncutils._internal.types.ExcType] = ...,
Context manager to suppress errors of the specified types and exit once they occur; works in both sync and async. More customizable than
contextlib.suppress, because some exception classes can be excluded from the suppression.The positional arguments are the exception classes to suppress within the context, and the iterable
excludewill be consumed to build upbut. All overlap is discarded.- async __aexit__(exc_typ: asyncutils._internal.types.ExcType, exc_val: BaseException, exc_tb: types.TracebackType, /) bool[source]¶
- async __aexit__(exc_typ: None, exc_val: None, exc_tb: None, /) Literal[False]
Async context support.
- __enter__() Self[source]¶
Start suppressing the exceptions with types in
exc, except those inbut, and return the context manager instance.
- __exit__(exc_typ: asyncutils._internal.types.ExcType, exc_val: BaseException, exc_tb: types.TracebackType, /) bool[source]¶
- __exit__(exc_typ: None, exc_val: None, exc_tb: None, /) Literal[False]
Stop suppressing the specified exceptions.
- combined(
- *others: Self | asyncutils._internal.types.ExcType | collections.abc.Iterable[Self] | collections.abc.Iterable[asyncutils._internal.types.ExcType],
Return a combined
IgnoreErrorsinstance that ignores all the error types from itself and the others and respects their exclusions.
- excluding(*others: asyncutils._internal.types.ExcType) Self[source]¶
Return a new
IgnoreErrorsinstance that ignores the error types from itself except those from the others.
- property but: tuple[asyncutils._internal.types.ExcType, Ellipsis]¶
The subclasses of exception types in
excthat are not ignored.
- property exc: tuple[asyncutils._internal.types.ExcType, Ellipsis]¶
The exception types that are ignored.
- class asyncutils.exceptions.WarningToError(/, *typs: type[Warning])[source]¶
Context manager to convert specific warnings to errors; works in both sync and async.
Positional arguments represent warning types to convert to their corresponding error types if they are to occur within the context.
- async __aexit__(exc_typ: asyncutils._internal.types.ExcType, exc_val: BaseException, exc_tb: types.TracebackType, /) None[source]¶
- async __aexit__(exc_typ: None, exc_val: None, exc_tb: None, /) None
Async context support.
- __enter__() Self[source]¶
Note that an error is to be raised once one of the warning types is encountered within the context and return the context manager instance.
- __exit__(exc_typ: asyncutils._internal.types.ExcType, exc_val: BaseException, exc_tb: types.TracebackType, /) None[source]¶
- __exit__(exc_typ: None, exc_val: None, exc_tb: None, /) None
Stop raising errors for the warning types specified.
- asyncutils.exceptions.exception_occurred(instance: object, /) TypeGuard[asyncutils._internal.types.ExceptionWrapper]¶
Whether the object is actually a sentinel for an exception, described above.
- asyncutils.exceptions.potent_derive(
- group: BaseExceptionGroup,
- /,
- *more: BaseException,
- ordered: bool = ...,
- predicate: collections.abc.Callable[[BaseException], bool] = ...,
- raise_critical: bool = ...,
- keep: asyncutils._internal.types.Exceptable = ...,
- filter_out: asyncutils._internal.types.Exceptable = ...,
- ack1: collections.abc.Callable[[BaseException], object] | None = ...,
- ack2: collections.abc.Callable[[BaseException], object] | None = ...,
- ack3: collections.abc.Callable[[BaseException], object] | None = ...,
- notes: collections.abc.Iterable[str] | None = ...,
- asyncutils.exceptions.potent_derive(
- exc: asyncutils._internal.types.NonGroupExc,
- /,
- *more: BaseException,
- message: str,
- ordered: bool = ...,
- predicate: collections.abc.Callable[[BaseException], bool] = ...,
- raise_critical: bool = ...,
- keep: asyncutils._internal.types.Exceptable = ...,
- filter_out: asyncutils._internal.types.Exceptable = ...,
- ack1: collections.abc.Callable[[BaseException], object] | None = ...,
- ack2: collections.abc.Callable[[BaseException], object] | None = ...,
- ack3: collections.abc.Callable[[BaseException], object] | None = ...,
- notes: collections.abc.Iterable[str] | None = ...,
- traceback: types.TracebackType | None = ...,
- context: BaseException,
- cause: None = ...,
- suppress: bool = ...,
- asyncutils.exceptions.potent_derive(
- exc: asyncutils._internal.types.NonGroupExc,
- /,
- *more: BaseException,
- message: str,
- ordered: bool = ...,
- predicate: collections.abc.Callable[[BaseException], bool] = ...,
- raise_critical: bool = ...,
- keep: asyncutils._internal.types.Exceptable = ...,
- filter_out: asyncutils._internal.types.Exceptable = ...,
- ack1: collections.abc.Callable[[BaseException], object] | None = ...,
- ack2: collections.abc.Callable[[BaseException], object] | None = ...,
- ack3: collections.abc.Callable[[BaseException], object] | None = ...,
- notes: collections.abc.Iterable[str] | None = ...,
- traceback: types.TracebackType | None = ...,
- context: None = ...,
- cause: BaseException,
- suppress: bool = ...,
- asyncutils.exceptions.potent_derive(
- exc: asyncutils._internal.types.NonGroupExc,
- /,
- *more: BaseException,
- message: str,
- ordered: bool = ...,
- predicate: collections.abc.Callable[[BaseException], bool] = ...,
- raise_critical: bool = ...,
- keep: asyncutils._internal.types.Exceptable = ...,
- filter_out: asyncutils._internal.types.Exceptable = ...,
- ack1: collections.abc.Callable[[BaseException], object] | None = ...,
- ack2: collections.abc.Callable[[BaseException], object] | None = ...,
- ack3: collections.abc.Callable[[BaseException], object] | None = ...,
- notes: collections.abc.Iterable[str] | None = ...,
- traceback: types.TracebackType | None = ...,
- context: None = ...,
- cause: None = ...,
- suppress: bool = ...,
- Return an instance of
BaseExceptionGroup, applying the specified filtering and combining the exceptions from other groups, flatteningwhen necessary.ordereddefaults toFalse, because that is more efficient.The intersection offilter_outandkeep, which are exception types (or tuples thereof), should be non-empty; they are redundant otherwise.The acknowledgement parametersack1,ack2andack3are called on exceptions in the above intersection, exceptions that don’t pass thepredicate and exceptions that are not inkeeprespectively.They must be callables that return fast (e.g. collecting into a list) to avoid slowing down the function.Ifraise_criticalisTrue, exit early once a critical exception (type of which is a member ofCRITICAL) is encountered andpropagate it.notesis attached to the group usingadd_note().Thesuppress,context,causeandtracebackparameters are used to add metadata to the result group; seeprepare_exception().They only have an effect when the first argument is not a group.
- asyncutils.exceptions.prepare_exception[E: BaseException](
- exc: E,
- /,
- *,
- traceback: types.TracebackType | None = ...,
- cause: BaseException | None = ...,
- context: BaseException | None = ...,
- suppress: bool = ...,
- notes: collections.abc.Iterable[str] = ...,
- Attach some info to the exception
excand return it.notesis an iterable of strings that are added to the exception usingadd_note(). If a single string, it is treated as one note; to avoid this for some reason, convert the string to a tuple beforehand.The parametertracebackcorresponds to the attribute__traceback__,causeto__cause__,contextto__context__andsuppressto__suppress_context__.
- asyncutils.exceptions.raise_exc(
- exc_typ: asyncutils._internal.types.ExcType,
- /,
- *args: object,
- traceback: types.TracebackType | None = ...,
- cause: BaseException | None = ...,
- context: BaseException | None = ...,
- suppress: bool = ...,
- notes: collections.abc.Iterable[str] = ...,
- **kwargs: object,
- asyncutils.exceptions.raise_exc(
- exc_val: BaseException,
- /,
- *,
- traceback: types.TracebackType | None = ...,
- cause: BaseException | None = ...,
- context: BaseException | None = ...,
- suppress: bool = ...,
- notes: collections.abc.Iterable[str] = ...,
Programmatically raise an exception. The variadic
argsandkwargsare passed to the constructor ofexc_typin the first overload, and the remaining arguments are as inpotent_derive().
- asyncutils.exceptions.unnest(
- group: BaseException,
- /,
- *more: BaseException,
- raise_critical: bool = ...,
- keep: asyncutils._internal.types.Exceptable = ...,
- filter_out: asyncutils._internal.types.Exceptable = ...,
- predicate: collections.abc.Callable[[BaseException], bool] = ...,
- ack1: collections.abc.Callable[[BaseException], object] | None = ...,
- ack2: collections.abc.Callable[[BaseException], object] | None = ...,
- ack3: collections.abc.Callable[[BaseException], object] | None = ...,
- Flatten exceptions that may be nested in
BaseExceptionGroup’s, with priority for those just sent in.Keyword arguments are as inpotent_derive().Tip
Use this only when you must preserve the order, and the faster
unnest_reverse()otherwise.
- asyncutils.exceptions.unnest_reverse(
- group: BaseException,
- /,
- *more: BaseException,
- raise_critical: bool = ...,
- keep: asyncutils._internal.types.Exceptable = ...,
- filter_out: asyncutils._internal.types.Exceptable = ...,
- predicate: collections.abc.Callable[[BaseException], bool] = ...,
- ack1: collections.abc.Callable[[BaseException], object] | None = ...,
- ack2: collections.abc.Callable[[BaseException], object] | None = ...,
- ack3: collections.abc.Callable[[BaseException], object] | None = ...,
Basically the above but in reverse order, with rare edge cases. More memory- and time-efficient than unnest.
- asyncutils.exceptions.unwrap_exc(instance: asyncutils._internal.types.ExceptionWrapper, /) BaseException¶
Recover the exception wrapped by
wrap_exc().
- asyncutils.exceptions.wrap_exc(exc: BaseException, /) asyncutils._internal.types.ExceptionWrapper¶
Wrap an exception in a special proxy
wrapper, such thatexception_occurred(wrapper)returnsTrue.
- asyncutils.exceptions.CRITICAL: Final[tuple[type[SystemExit], type[SystemError], type[KeyboardInterrupt]]]¶
The tuple (
SystemExit,SystemError,KeyboardInterrupt), representing exceptions that should be allowed to propagate under most error handling mechanisms.
- asyncutils.exceptions.ignore_all: Final[IgnoreErrors]¶
Instance of
IgnoreErrorsthat ignores all errors; that is,IgnoreErrors(BaseException). Use with caution!
- asyncutils.exceptions.ignore_noncritical: Final[IgnoreErrors]¶
Instance of
IgnoreErrorsthat ignores all errors besidesSystemExit,SystemErrorandKeyboardInterrupt. Equivalent toignore_all.excluding(CRITICAL).
- asyncutils.exceptions.ignore_stopaiteration: Final[IgnoreErrors]¶
Instance of
IgnoreErrorsthat ignoresStopAsyncIteration. Equivalent toIgnoreErrors(StopAsyncIteration).
- asyncutils.exceptions.ignore_stopiteration: Final[IgnoreErrors]¶
Instance of
IgnoreErrorsthat ignoresStopIteration. Equivalent toIgnoreErrors(StopIteration).
- asyncutils.exceptions.ignore_typeerrs: Final[IgnoreErrors]¶
Instance of
IgnoreErrorsthat ignoresTypeError. Equivalent toIgnoreErrors(TypeError).
- asyncutils.exceptions.ignore_typical: Final[IgnoreErrors]¶
Instance of
IgnoreErrorsthat ignoresExceptionand subclasses thereof. Equivalent toIgnoreErrors().
- asyncutils.exceptions.ignore_valerrs: Final[IgnoreErrors]¶
Instance of
IgnoreErrorsthat ignoresValueError. Equivalent toIgnoreErrors(ValueError).