Image for post
Image for post
Photo by Neil Thomas on Unsplash

Exception handling in Ruby and life

As a student in the Flatiron School’s web development program, we’ve learned to use Ruby on Rails for the backend. Until recently, we’ve not had to be concerned with exceptions.

Exception handling, where your code anticipates possible errors and “rescues” the application from crashing, is key to developing code that has to interface with the often predictable unpredictability of the real world.

One area where exception handling is required is when using APIs for web-based services such as Twitter, Google and countless others. Not all exceptions mean that something went wrong; they can also be used to signal temporary unavailability of a service (like during routine maintenance or discontinued endpoints) or changes to the API. …

About

Tracy Collins (aka threecee)

art + tech

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store