The call to random_failure raises either a ThisError, ThatError, or TheOtherError, randomly. Rescue ThisError, and print the message “I caught this!”. Rescue ThatError, and print “I caught that!”. Allow TheOtherError to fail normally.
Try running your code repeatedly. You should see one of these three outputs each time: