Open Closed

Customize the HTTP error handler #6587


User avatar
0
fernando.guilherme created
  • ABP Framework version: v8.0.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server,)
  • Tiered (for MVC) or Auth Server Separated (for Angular): /no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hello, This solution didn't work for me, regarding { provide: AbpFormatErrorHandlerService, useValue: AbpFormatErrorHandlerCustomService }, https://support.abp.io/QA/Questions/6220/Customize-HTTP-Error-Handler#answer-3a0f13f5-8e56-d080-f923-63fcb15c77d9

Would you help me?


4 Answer(s)
  • User Avatar
    0
    masum.ulu created
    Support Team Angular Expert

    Hi can you please share your code ?

  • User Avatar
    0
    sinan created
    Support Team Angular Developer

    Hi, can you use useClass instead of useValue, while providing your customService.

    For more information and examples, you can check our updated latest documentation about error handling. *> https://github.com/abpframework/abp/blob/20b7151d447e69aaa5944bddbc0842c5207fbd52/docs/en/UI/Angular/HTTP-Error-Handling.md

    it will be reflected to https://docs.abp.io/en/abp/latest soon.

  • User Avatar
    0
    fernando.guilherme created

    Oi você pode por favor compartilhar seu código?

    Hi,

    I already tried this solution above but it didn't work.

    Yes, I can... do you prefer it in print or the code itself?

  • User Avatar
    0
    sinan created
    Support Team Angular Developer

    have you tried this section? if you did please share the related codes with us.

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