by rjp0008 · 11mo ago · 0 comments
try {
do_action()
} catch (BitFlipError e) {
logger.critical("Shouldn't get here")
}
Ask-for-forgiveness as an error detection pattern avoids these kinds of errors entirely. int cosmic_ray = 0
if (bool(cosmic_ray)) {
throw cosmicRayException()
}