7
you are viewing a single comment's thread
view the rest of the comments
[-] tamlyn@lemmy.zip 1 points 1 year ago

So if i want to handle different status code, is several exception filters or if statements cleaner. I just remember a colleague has done that in the past with if statements.

[-] SmartmanApps@programming.dev 3 points 1 year ago

Probably debatable. I think he was more addressing when you need to pull out a specific exception this is a cleaner way to do it. Saves having to rethrow the exception.

this post was submitted on 01 Sep 2025
7 points (100.0% liked)

C Sharp

1806 readers
2 users here now

A community about the C# programming language

Getting started

Useful resources

IDEs and code editors

Tools

Rules

Related communities

founded 3 years ago
MODERATORS