From fe33c0e74ec81885a4ff4ed3e13f7e6bd29b0e0f Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Wed, 10 Jun 2020 09:46:42 -0700 Subject: [PATCH] docs: link to handling exceptions --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dec59c18d..9f64b91fe 100644 --- a/README.md +++ b/README.md @@ -130,11 +130,13 @@ To use a custom HTTP client with this helper library, please see the [Twilio doc ```ruby begin messages = @client.messages.list(limit: 20) -rescue Twilio::REST::TwilioError => e +rescue Twilio::REST::RestError => e puts e.message end ``` +For more descriptive exception types, please see the [Twilio documentation](https://www.twilio.com/docs/libraries/ruby/usage-guide#error-handling). + ### Getting Started With Client Capability Tokens If you just need to generate a Capability Token for use with Twilio Client, you can do this: