3 ms·
I'm not saying it's not necessary; I'm saying it's not sufficient. try { pay(); } catch { try { refund(); } catch {
by mrkeen 3y ago
I'm not saying it's not necessary; I'm saying it's not sufficient.
try {
pay();
} catch {
try {
refund();
} catch {
// "must refund the customer" implies we can't reach here
}
}