NOP-MOV
NOP-MOV

Reputation: 890

Catch all exceptions

Is it possible to catch all Azure Function exceptions in one place, just like IExceptionFilter or Application_Error in global.asax for ASP.NET?

Also, is it possible to grab the current HttpRequestMessage to get the context of the exception?

Upvotes: 4

Views: 383

Answers (1)

ahmelsayed
ahmelsayed

Reputation: 7402

You can use Function Filters for that; however, they only work with precompiled functions using the attribute model see this for more info

Upvotes: 3

Related Questions