Spring has arrived!
Can you believe it? It's Spring already! It doesn't feel like it yet here in London, but maybe it does wherever you are.
I've been working on the specification and implementation of some API client libraries (SDKs) for a client, and as part of it I've been looking at error handling in Ruby SDKs. More on that below.
I hope you enjoy this issue and feel free to send me your suggestions for the next one.
When setting out to create a great developer experience, a large part of your success will depend on how your product handles the “failure path” of a developers user story.
In a usual login form, this would be something like a user typing in an incorrect username and password, but in a client library or SDK this is often when the user is providing the wrong credentials or incomplete parameters to an API call.
In this post, I looked at the SDKs from SendGrid, Twilio, Stripe, and Contentful to see how they handle two common errors: invalid credentials and an invalid request.