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
Copy file name to clipboardExpand all lines: src/GroupDocs.Viewer.UI.API/README.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ This section lists the features provided by the module.
17
17
### Error Handling
18
18
19
19
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.
21
21
22
22
The following code demonstrates how to implement a custom error message provider:
23
23
@@ -47,9 +47,7 @@ var builder = WebApplication.CreateBuilder(args);
**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.
53
51
This class provides a default implementation that returns the exception error message.
54
52
55
53
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