Catching Exceptions with Begin Rescue

A Basic Error Handling Block

Saving the Error

Checking for Different Errors

Retrying

Checking Whether No Error Was Raised

Code That Should Always Run