@cm0002@lemmy.world to Programmer Humor@programming.dev • 4 months agoYes, But...lemmy.mlimagemessage-square75arrow-up1762cross-posted to: programmerhumor@lemmy.ml
arrow-up1762imageYes, But...lemmy.ml@cm0002@lemmy.world to Programmer Humor@programming.dev • 4 months agomessage-square75cross-posted to: programmerhumor@lemmy.ml
minus-squarebountygiver [any]linkfedilinkEnglish7•4 months agowhen you are too lazy to ask your request library to not throw exception on non-200 responses.
minus-square@dan@upvote.aulinkfedilink5•4 months agoThrowing exceptions is fine since errors are an exceptional circumstance (not expected during normal use of the app), and you probably want errors to follow a different code path so that they can be logged, alerts triggered if needed, etc.
when you are too lazy to ask your request library to not throw exception on non-200 responses.
Throwing exceptions is fine since errors are an exceptional circumstance (not expected during normal use of the app), and you probably want errors to follow a different code path so that they can be logged, alerts triggered if needed, etc.