Skip to content

Commit e1d93e4

Browse files
committed
mention Intercom::ServiceConnectionError in Readme.md
1 parent 0f7436f commit e1d93e4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ else rescue the more specific error subclass.
336336
Intercom::AuthenticationError
337337
Intercom::ServerError
338338
Intercom::ServiceUnavailableError
339+
Intercom::ServiceConnectionError
339340
Intercom::ResourceNotFound
340341
Intercom::BadRequestError
341342
Intercom::RateLimitExceeded

lib/intercom/errors.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ class ServerError < IntercomError; end
2020
# Raised when we have bad gateway errors.
2121
class BadGatewayError < IntercomError; end
2222

23-
# Raised when we reach socket connect timeout
23+
# Raised when we experience a socket read timeout
2424
class ServiceUnavailableError < IntercomError; end
2525

26+
# Raised when we experience socket connect timeout
2627
class ServiceConnectionError < IntercomError; end
2728

2829
# Raised when requesting resources on behalf of a user that doesn't exist in your application on Intercom.

0 commit comments

Comments
 (0)