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)
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.