🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸 on Nostr: chovy some people say you should only catch one exception per try, but sometimes you ...
chovy (npub1mzd…ttwq) some people say you should only catch one exception per try, but sometimes you have a chain of exceptionable statements; a chain of API calls say where each depends on the success of the previous. If you just have one catch you have to then have a switch to figure out which one it was that failed. But since you don't want to do the subsequent you dont want sequential try/catches unless you short circuit return between them.
Published at
2023-06-20 03:51:16Event JSON
{
"id": "fbe238b75dcc1f0aae389ee9c288e70f5b8bc6f28b505bbb4f35129137e999f2",
"pubkey": "650f1ea8ded4e89cd4bd440688bb810ad756c7be3e3051caed2fa6eef0cbc38c",
"created_at": 1687233076,
"kind": 1,
"tags": [
[
"p",
"d89b2a2614eb8162b62ca57cefb4165722caa71a57fd85de3c9723c49b9aca47",
"wss://relay.mostr.pub"
],
[
"e",
"485ddd544ca7737b1e7a04eab3a9aa71789d17e8185a6b3ffb3124ec9226b656",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://mas.to/users/schizanon/statuses/110574506877856079"
]
],
"content": "nostr:npub1mzdj5fs5awqk9d3v547wldqk2u3v4fc62l7cth3uju3ufxu6efrsnjttwq some people say you should only catch one exception per try, but sometimes you have a chain of exceptionable statements; a chain of API calls say where each depends on the success of the previous. If you just have one catch you have to then have a switch to figure out which one it was that failed. But since you don't want to do the subsequent you dont want sequential try/catches unless you short circuit return between them.",
"sig": "403a88881e286cb34d110a144a252bb311a8d10e4a3c000a905091d0bc1a9feee3ee1098a4e31f127d578722a844c73ee0cd7c9acaff7b3257f30e3d9e2bd399"
}