Exception: EBSCO::EDS::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ebsco/eds/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors = nil) ⇒ Error



6
7
8
9
10
11
# File 'lib/ebsco/eds/error.rb', line 6

def initialize(errors = nil)
  if errors
    @fault = errors
    super(errors[:error_body])
  end
end

Instance Attribute Details

#faultObject (readonly)

Returns the value of attribute fault.



5
6
7
# File 'lib/ebsco/eds/error.rb', line 5

def fault
  @fault
end