This is an initial integration with the @inrupt/solid-client-errors library.
There are currently three error types used in the notification library:
FetchError
NotImplementedError
NotSupported
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.
This is an initial integration with the
@inrupt/solid-client-errors
library.There are currently three error types used in the notification library:
FetchError
NotImplementedError
NotSupported
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 theFetchError
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.