56

Brilliant exception handling I found in an app i had to work on

you are viewing a single comment's thread
view the rest of the comments
[-] sellingspams@feddit.de -1 points 1 year ago

This can't compile, can it? Only a madman commits code which doesn't compile.

[-] Jaloopa@beehaw.org 2 points 1 year ago

Why wouldn't it? It's syntactically valid C#, with the added bonus of destroying the stack trace

[-] Keelhaul@sh.itjust.works 1 points 1 year ago

Who needs stack traces anyway? Just search all of your code on the word throw until you have the right one

this post was submitted on 17 Jun 2023
56 points (98.3% liked)

Programmer Humor

32361 readers
1566 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS