Sha256: 0bb737f147364dab095592bdde9ac3d2311393029badd5ef4d088f039a84c3e8
Contents?: true
Size: 854 Bytes
Versions: 3
Compression:
Stored size: 854 Bytes
Contents
module XeroGateway class ApiException < StandardError def initialize(type, message, xml) @type = type @message = message @xml = xml end def message "#{@type}: #{@message} \n Generated by the following XML: \n #{@xml}" end end class UnparseableResponse < StandardError def initialize(root_element_name) @root_element_name = root_element_name end def message "A root element of #{@root_element_name} was returned, and we don't understand that!" end end class ObjectNotFound < StandardError def initialize(api_endpoint) @api_endpoint = api_endpoint end def message "Couldn't find object for API Endpoint #{@api_endpoint}" end end class InvoiceNotFoundError < StandardError; end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xero_gateway-2.0.4 | lib/xero_gateway/exceptions.rb |
xero_gateway-2.0.3 | lib/xero_gateway/exceptions.rb |
xero_gateway-2.0.2 | lib/xero_gateway/exceptions.rb |