Skip to content

Commit 8d050d1

Browse files
author
bhayani
committed
Update README.md
Intercom::Error gives a NoMethodError. The correct error to inherit off of is Intercom::IntercomError
1 parent 153bdb6 commit 8d050d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ Note that models generated from webhook notifications might differ slightly from
330330
### Errors
331331
You do not need to deal with the HTTP response from an API call directly. If there is an unsuccessful response then an error that is a subclass of Intercom:Error will be raised. If desired, you can get at the http_code of an Intercom::Error via its `http_code` method.
332332

333-
The list of different error subclasses are listed below. As they all inherit off Intercom::Error you can choose to rescue Intercom::Error or
333+
The list of different error subclasses are listed below. As they all inherit off Intercom::IntercomError you can choose to rescue Intercom::IntercomError or
334334
else rescue the more specific error subclass.
335335

336336
```ruby

0 commit comments

Comments
 (0)