Exception: Grape::Exceptions::ValidationError

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

Instance Attribute Summary collapse

Attributes inherited from Base

#headers, #message, #status

Instance Method Summary collapse

Methods inherited from Base

#[]

Constructor Details

#initialize(args = {}) ⇒ ValidationError

Returns a new instance of ValidationError.



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

def initialize(args = {})
  @param = args[:param].to_s if args.has_key? :param
  super
end

Instance Attribute Details

#paramObject

Returns the value of attribute param.



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

def param
  @param
end