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
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 TypeError or MetadataTypeError.
It will replace RepositoryError which we threw inside the TrustedMetadataSet when the metadata types are not the ones we expect.
Activity
lukpueh commentedon Jan 27, 2022
I reviewed all exceptions and I no longer think we currently need to add a custom (Metadata)TypeError. Shall we close here?