Exception: Xeroizer::UnparseableResponse

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

Instance Method Summary collapse

Constructor Details

#initialize(root_element_name) ⇒ UnparseableResponse

Returns a new instance of UnparseableResponse.



36
37
38
# File 'lib/xeroizer/exceptions.rb', line 36

def initialize(root_element_name)
  @root_element_name = root_element_name
end

Instance Method Details

#messageObject



40
41
42
# File 'lib/xeroizer/exceptions.rb', line 40

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