inrupt / solid-client-notifications-js

solid-client-notifications-js-git-main-inrupt.vercel.app
MIT License
2 stars 3 forks source link

Integrate problem details library #1031

Closed acoburn closed 1 month ago

acoburn commented 1 month ago

This is an initial integration with the @inrupt/solid-client-errors library.

There are currently three error types used in the notification library:

The second two do not contain information relevant to Problem Details: they are not changed. The first one handles HTTP errors where problem details responses are relevant. Rather than adapting the FetchError to inherit from a problem details-supported class, this PR deprecates the FetchError class and replaces the usages of that class with a problem details processor.

In the first commit, there are no changes to the test code. If this PR seems to be going in the right direction, I will add tests to cover these changes.