Open Closed

Business Exception #7088


User avatar
0
nabass created

Good Morning hope you are well i have a question about handling business exception when i enter the page index it gives me an error (image below) despite i tried it the same code same steps same functionality into create popup it works good so does framework support this type of exception when i open the index or just work within create or edit?

  • ABP Framework version: v8
  • UI Type: MVC
  • Database System: EF Core (SQL Server)

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://docs.abp.io/en/abp/latest/Exception-Handling

    Automatic Exception Handling

    AbpExceptionFilter handles an exception if any of the following conditions are met:

    • Exception is thrown by a controller action which returns an object result (not a view result).
    • The request is an AJAX request (X-Requested-With HTTP header value is XMLHttpRequest).
    • Client explicitly accepts the application/json content type (via accept HTTP header).
    • If the exception is handled it's automatically logged and a formatted JSON message is returned to the client.

    If your page result is not an object result. You can use try-catch in your page method.

    https://docs.abp.io/en/abp/latest/UI/AspNetCore/Page-Alerts

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