Updating error handling example to match updates to Listing 12.25