Skip to content

Commit caa326d

Browse files
committed
Merge pull request #229 from mntj/master
Error documentation cleanup
2 parents dbe3738 + a237009 commit caa326d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/intercom/errors.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def initialize(message, http_code = nil, error_code = application_error_code)
1414
# Check that you have set <b>Intercom.app_id=</b> and <b>Intercom.app_api_key=</b> correctly.
1515
class AuthenticationError < IntercomError; end
1616

17-
# Raised when something does wrong on within the Intercom API service.
17+
# Raised when something goes wrong on within the Intercom API service.
1818
class ServerError < IntercomError; end
1919

2020
# Raised when we have bad gateway errors.
@@ -29,29 +29,29 @@ class ServiceConnectionError < IntercomError; end
2929
# Raised when requesting resources on behalf of a user that doesn't exist in your application on Intercom.
3030
class ResourceNotFound < IntercomError; end
3131

32-
# Raised when the request has a bad syntax
32+
# Raised when the request has bad syntax
3333
class BadRequestError < IntercomError; end
3434

35-
# Raised when you have exceed the API rate limit
35+
# Raised when you have exceeded the API rate limit
3636
class RateLimitExceeded < IntercomError; end
3737

3838
# Raised when the request throws an error not accounted for
3939
class UnexpectedError < IntercomError; end
40-
40+
4141
# Raised when multiple users match the query (typically duplicate email addresses)
4242
class MultipleMatchingUsersError < IntercomError; end
4343

4444
# Raised when you try to call a non-setter method that does not exist on an object
4545
class Intercom::AttributeNotSetError < IntercomError ; end
46-
46+
4747
# Raised when unexpected nil returned from server
4848
class Intercom::HttpError < IntercomError ; end
4949

5050
#
5151
# Non-public errors (internal to the gem)
5252
#
5353

54-
# Base class exception from which all public Intercom exceptions will be derived
54+
# Base class exception from which all private Intercom exceptions will be derived
5555
class IntercomInternalError < StandardError; end
5656

5757
# Raised when we attempt to handle a method missing but are unsuccessful

0 commit comments

Comments
 (0)