Exception: XeroGateway::UnparseableResponse

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

Instance Method Summary collapse

Constructor Details

#initialize(root_element_name) ⇒ UnparseableResponse

Returns a new instance of UnparseableResponse.



25
26
27
# File 'lib/xero_gateway/exceptions.rb', line 25

def initialize(root_element_name)
  @root_element_name = root_element_name
end

Instance Method Details

#messageObject



29
30
31
# File 'lib/xero_gateway/exceptions.rb', line 29

def message
  "A root element of #{@root_element_name} was returned, and we don't understand that!"
end