cm0002@lemmy.world to Programmer Humor@programming.dev · 3 个月前Yes, But...lemmy.mlexternal-linkmessage-square76fedilinkarrow-up1766arrow-down19cross-posted to: programmerhumor@lemmy.ml
arrow-up1757arrow-down1external-linkYes, But...lemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 3 个月前message-square76fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squaredan@upvote.aulinkfedilinkarrow-up5·3 个月前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.
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.