Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Where is the IEventHandler<AbpHandledExceptionData > handled #2661


User avatar
0
bilalhaidar created

Hello,

I am trying to find the code where the triggered event AbpHandledExceptionData is being handled?

If possible to refer me to source code.

Thank you. Bilal


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    It is not handled by default but you can define an ecent handler like in this example <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Handling-Exceptions#DocExceptionEvent">http://aspnetboilerplate.com/Pages/Docu ... ptionEvent</a> and handle it if you like in your project.

  • User Avatar
    0
    bilalhaidar created

    Ah, I thought all such exceptions are handled and sent back to client.

    When an error happens at server, how is the client informed in this case? I thought it was handling that interface. Can you please guide me through the code to see where is the framework handling errors and sending them to client (Popup message).

    Thanks

  • User Avatar
    0
    bilalhaidar created

    Any idea? Thanks.

  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Exceptions are handled by MVC/web-api action filters and sent back to clients as json (explained here: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Handling-Exceptions#DocAjax">http://www.aspnetboilerplate.com/Pages/ ... ns#DocAjax</a> and here: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Javascript-API/AJAX#handling-errors">http://www.aspnetboilerplate.com/Pages/ ... ing-errors</a>).

    If you are asking "how framework internally does it?", then this is a little out of scope because the framework internals is a huge topic. It's open source and you can see code. We try to help you if you want to understand it, but can not explain all details as this is not related to AspNet Zero support and explaining a framework is not a trival stuff.

    Beside AspNet Zero's support, if you want to learn internals of ABP framework, please use ABP's Github issues. We try to answer your questions as we have time.

    Have a nice day.

  • User Avatar
    0
    bilalhaidar created

    Thanks a lot. I will surely use the GitHub for questions about framework. I thought I can only post issues on GitHub :)