SOME RAMBLING NOTES FROM A 21st CENTURY GEEZER

SOME RAMBLING NOTES FROM A 21st CENTURY GEEZER

Share this post

SOME RAMBLING NOTES FROM A 21st CENTURY GEEZER
SOME RAMBLING NOTES FROM A 21st CENTURY GEEZER
REAL-WORLD COMPUTER PROGRAMMING FOR KIDS

REAL-WORLD COMPUTER PROGRAMMING FOR KIDS

STEP 17: MAKE SURE AND JUST IN CASE (Or, Throwing, Catching, and Teasing of Future Logging)

B. Clay Shannon's avatar
B. Clay Shannon
Aug 25, 2020
∙ Paid

Share this post

SOME RAMBLING NOTES FROM A 21st CENTURY GEEZER
SOME RAMBLING NOTES FROM A 21st CENTURY GEEZER
REAL-WORLD COMPUTER PROGRAMMING FOR KIDS
Share

A famous movie character once said, “There is no Try.” He was wrong. There definitely is a Try, and it’s very handy for programmers. Try has two partners: catch, and finally.

You might remember from Step 16 that a subset of the code we discussed looks like this:

try
{
    // elided code
}  
catch (Exception ex)
{
    MessageBox.Show(ex.Message);
    throw;
}

So wh…

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Clay Shannon
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share