proxystore.store.exceptions¶
Exceptions for Stores.
StoreClosedError
¶
StoreClosedError(store_id: str)
Bases: StoreError
Exception raised when using a store that was closed and cleared.
When the owner of a store is
closed and its connector removes the stored objects, the ID of the store
stays closed for the rest of the process. Resolving proxies of the store
in that process raises this error instead of making a new store.
Init StoreClosedError.
Parameters:
-
store_id(str) –ID of the closed store.
Source code in proxystore/store/exceptions.py
ProxyStoreFactoryError
¶
Bases: StoreError
Exception raised when a proxy was not created by a Store.
ProxyResolveMissingKeyError
¶
ProxyResolveMissingKeyError(
key: ConnectorKeyT,
store_type: type[Store[Any]],
store_name: str | None,
store_id: str | None = None,
)
Bases: StoreError
Exception raised when the key associated with a proxy is missing.
Init ProxyResolveMissingKeyError.
Parameters:
-
key(ConnectorKeyT) –Key associated with target object that could not be found in the store.
-
store_type(type[Store[Any]]) –Type of store that the key could not be found in.
-
store_name(str | None) –Name of store that the key could not be found in.
-
store_id(str | None, default:None) –ID of store that the key could not be found in.
Source code in proxystore/store/exceptions.py
NonProxiableTypeError
¶
Bases: StoreError
Exception raised when proxying an unproxiable type.