class XeroGateway::ApiException

Attributes

request_xml[R]
response_xml[R]

Public Class Methods

new(type, message, request_xml, response_xml) click to toggle source
# File lib/xero_gateway/exceptions.rb, line 8
def initialize(type, message, request_xml, response_xml)
  @type     = type
  @message  = message
  @request_xml      = request_xml
  @response_xml      = response_xml
end

Public Instance Methods

message() click to toggle source
# File lib/xero_gateway/exceptions.rb, line 17
def message
  "#{@type}: #{@message} \n Generated by the following XML: \n #{@response_xml}"
end