Basics

Error Handling: if - else if - else

Traditional Error Handling

My Wish …

if (dothat())
    if (dothis())
        if (dothose())
            finally();
        else
            dammit();
    else
        dammit();
else
    dammit();
dothat();
dothis();
dothose();
finally();
// only if anything bad happens:
dammit();