Exception: Intercom::IntercomError
- Inherits:
-
StandardError
- Object
- StandardError
- Intercom::IntercomError
- Defined in:
- lib/intercom/errors.rb
Overview
Base class exception from which all public Intercom exceptions will be derived
Direct Known Subclasses
AttributeNotSetError, AuthenticationError, BadGatewayError, BadRequestError, HttpError, MultipleMatchingUsersError, RateLimitExceeded, ResourceNotFound, ServerError, ServiceConnectionError, ServiceUnavailableError, UnexpectedError
Instance Attribute Summary collapse
-
#application_error_code ⇒ Object
readonly
Returns the value of attribute application_error_code.
-
#http_code ⇒ Object
readonly
Returns the value of attribute http_code.
Instance Method Summary collapse
-
#initialize(message, http_code = nil, error_code = application_error_code) ⇒ IntercomError
constructor
A new instance of IntercomError.
Constructor Details
#initialize(message, http_code = nil, error_code = application_error_code) ⇒ IntercomError
Returns a new instance of IntercomError.
6 7 8 9 10 |
# File 'lib/intercom/errors.rb', line 6 def initialize(, http_code = nil, error_code = application_error_code) @http_code = http_code @application_error_code = error_code super() end |
Instance Attribute Details
#application_error_code ⇒ Object (readonly)
Returns the value of attribute application_error_code.
5 6 7 |
# File 'lib/intercom/errors.rb', line 5 def application_error_code @application_error_code end |
#http_code ⇒ Object (readonly)
Returns the value of attribute http_code.
5 6 7 |
# File 'lib/intercom/errors.rb', line 5 def http_code @http_code end |