betty.collection.keyed.error module¶
Keyed collection proxies that raise custom errors.
- class betty.collection.keyed.error.ErroringKeyedCollection¶
Bases:
KeyedCollectionProxy,GenericA keyed collection proxy that raises custom errors.
- __init__(upstream: KeyedCollection, key_error: Callable[[KeyError, KeyT | ResolvableKeyT], KeyError], /)¶
- class betty.collection.keyed.error.MutableErroringKeyedCollection¶
Bases:
ErroringKeyedCollection,MutableKeyedCollectionProxy,GenericA mutable keyed collection proxy that raises custom errors.