As it was defined for the API in #5494, handling exceptions for loading PDF files could be used as a sample to define the following on the client side.
Define Error hierarchy and use UwaziErrors that extend from Error.
Define the strategy for filtering errors before sending them to Sentry.
Define the interaction with the ErrorBoundary implemented in the react-router upgrade #3096.
As it was defined for the API in #5494, handling exceptions for loading PDF files could be used as a sample to define the following on the client side.