Exception: Intercom::IntercomError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/intercom/errors.rb

Overview

Base class exception from which all public Intercom exceptions will be derived

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, http_code = nil, error_code = application_error_code)
  @http_code = http_code
  @application_error_code = error_code
  super(message)
end

Instance Attribute Details

#application_error_codeObject (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_codeObject (readonly)

Returns the value of attribute http_code.



5
6
7
# File 'lib/intercom/errors.rb', line 5

def http_code
  @http_code
end