❔ Custom "block" statement such as while..do
Hello,
is it possible to build a custom block? For example
9 Replies
I have a lot of requests that requires a try catch block.
no, C# doesn't have a way to add new syntax
What would be the best way to solve the try catch disaster? Use a try catch around each request?
that highly depends on how the rest of your code is structured
I mean you could sorta emulate it
The usual way of handling that is to have a global exception handler and let the exceptions bubble up
you can always use ANTLR 😆
Use Polly, it's ultimate library for this kind of things.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.