You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do we need a new MissingInformationError/MissingMetadataError? #1778
We want to use a shortlist of exceptions that will be thrown from our APIs, so that our users can handle them easily.
On another hand that doesn't stop us from creating other more specific exceptions that derive from those main exceptions.
This allows us to easily test that specific errors were thrown when we expected them.
For example we are using BadVersionError and LengthOrHashMismatchError which derive from RepositoryError.
There is the possibility to add a new exception which can be called MissingInformationError or MissingMetadataError.
It will replace RepositoryError which we threw inside the TrustedMetadataSet when:
information for a target is missing inside a new snapshot version compared to an older snapshot version- not sure we need a new one here
updating a delegated target, but snapshot doesn’t contain information for it - not sure we need a new one here
Activity
lukpueh commentedon Jan 27, 2022
I reviewed all exceptions and I no longer think we currently need to add a custom MissingInformationError/MissingMetadataError. Shall we close here?