Exception: Grape::Exceptions::ValidationArrayErrors

Inherits:
Base
  • Object
show all
Defined in:
lib/grape/exceptions/validation_array_errors.rb

Constant Summary

Constants inherited from Base

Base::BASE_ATTRIBUTES_KEY, Base::BASE_MESSAGES_KEY, Base::FALLBACK_LOCALE

Instance Attribute Summary collapse

Attributes inherited from Base

#headers, #message, #status

Instance Method Summary collapse

Methods inherited from Base

#[]

Constructor Details

#initialize(errors) ⇒ ValidationArrayErrors

Returns a new instance of ValidationArrayErrors.



8
9
10
# File 'lib/grape/exceptions/validation_array_errors.rb', line 8

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



6
7
8
# File 'lib/grape/exceptions/validation_array_errors.rb', line 6

def errors
  @errors
end