Skip to content

Commit f625657

Browse files
Update path to the file in readme
1 parent 7c72f9b commit f625657

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/GroupDocs.Viewer.UI.API/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This section lists the features provided by the module.
1717
### Error Handling
1818

1919
Types that enable you to display custom error messages can be found in the [ErrorHandling](./ErrorHandling) folder.
20-
The key type here is the [ErrorMessageProvider.cs](./ErrorMessageProvider.cs) interface, which defines a contract for providing user-friendly error messages based on exceptions.
20+
The key type here is the [ErrorMessageProvider.cs](./ErrorHandling/ErrorMessageProvider.cs) interface, which defines a contract for providing user-friendly error messages based on exceptions.
2121

2222
The following code demonstrates how to implement a custom error message provider:
2323

@@ -47,9 +47,7 @@ var builder = WebApplication.CreateBuilder(args);
4747
builder.Services.AddSingleton<IErrorMessageProvider, MyErrorMessageProvider>();
4848
```
4949

50-
**NOTE:** The service should be registered before you register the self-hosted or cloud API for it to take effect.
51-
52-
By default, [ExceptionMessageProvider.cs](./ErrorHandling/ExceptionMessageProvider.cs) is registered.
50+
**NOTE:** The service should be registered before you register the self-hosted or cloud API for it to take effect. By default, [ExceptionMessageProvider.cs](./ErrorHandling/ExceptionMessageProvider.cs) is registered.
5351
This class provides a default implementation that returns the exception error message.
5452

5553
Once a custom error message provider is registered, a popup with the custom error message will be displayed in case of an error.

0 commit comments

Comments
 (0)