Exception: Bobot::NetworkError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bobot/exceptions.rb

Overview

Base Facebook Messenger exception.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, description) ⇒ NetworkError

Returns a new instance of NetworkError.



60
61
62
63
# File 'lib/bobot/exceptions.rb', line 60

def initialize(response, description)
  @response = response
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



58
59
60
# File 'lib/bobot/exceptions.rb', line 58

def description
  @description
end

#responseObject (readonly)

Returns the value of attribute response.



57
58
59
# File 'lib/bobot/exceptions.rb', line 57

def response
  @response
end

Instance Method Details

#messageObject



65
66
67
# File 'lib/bobot/exceptions.rb', line 65

def message
  description
end

#to_sObject



69
70
71
# File 'lib/bobot/exceptions.rb', line 69

def to_s
  message
end