WebAPI Exceptions in Angular

Publié le: 24 août 2017
sur la chaîne: David Donovan
282
5

ASP.Net Core applications need a different method for returning exception data back to the Angular services. The Angular.Net Starter App implements a technique to return useful exception information back to the client, which is later stored on the client for analysis. Here is how it works.

In the Angular.Net Starter App, all WebAPI Controllers are derived from a base controller. In this case, I didn’t need to spend a lot of time trying to think of a clever name for the base controller so I just named it “BaseController.cs”. Here is how to extend the ExceptionFilterAttribute for passing exception details back to the client.


Sur cette page du site, vous pouvez voir la vidéo en ligne WebAPI Exceptions in Angular durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur David Donovan 24 août 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 282 fois et il a aimé 5 téléspectateurs. Bon visionnage!