WebAPI Exceptions in Angular

Pubblicato il: 24 agosto 2017
sul canale di: 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.


In questa pagina del sito puoi guardare il video online WebAPI Exceptions in Angular della durata di ore minuti seconda in buona qualità , che l'utente ha caricato David Donovan 24 agosto 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 282 volte e gli è piaciuto 5 spettatori. Buona visione!