Exception: Xero::Api::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/xero/api/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors = nil) ⇒ Error

Returns a new instance of Error.



5
6
7
8
9
10
# File 'lib/xero/api/error.rb', line 5

def initialize(errors = nil)
  if errors
    @fault = errors
    super(errors)
  end
end

Instance Attribute Details

#faultObject (readonly)

Returns the value of attribute fault.



4
5
6
# File 'lib/xero/api/error.rb', line 4

def fault
  @fault
end