Exception: StarkCore::Error::InputErrors

Inherits:
StarkCoreError show all
Defined in:
lib/error.rb

Instance Attribute Summary collapse

Attributes inherited from StarkCoreError

#message

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ InputErrors

Returns a new instance of InputErrors.



26
27
28
29
30
31
32
33
# File 'lib/error.rb', line 26

def initialize(content)
  errors = []
  content.each do |error|
    errors << Error.new(error['code'], error['message'])
  end
  @errors = errors
  super(content.to_json)
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



25
26
27
# File 'lib/error.rb', line 25

def errors
  @errors
end