Starts in:
1 DAY
16 HRS
9 MIN
18 SEC
Starts in:
1 D
16 H
9 M
18 S
Open Closed

How to customize default error handler for RestService #795


User avatar
0
albert.ogbekhilu created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): yes

How can i customize the default error handler for the RestService. I've read through the documentation here link to documentation but it only explains how to disable it per api using the skipHandleError config option. Is there a way I can customize it globally so I can display a toast message instead of the popup modal or full page error (especially the full page errors when a service is not available).

Secondly, is there a way to modify the title for a business exception throw from the backend or restyle the modal, the documentation only mentioned the message link to documentation


1 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Hello @albert.ogbekhilu,

    There is an on going issue about this, https://github.com/abpframework/abp/issues/7145. It will be implemented soon.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06