Exception: Sinatra::Rabbit::Validator::RequiredParameter

Inherits:
ValidationError
  • Object
show all
Defined in:
lib/sinatra/rabbit/validator.rb

Instance Attribute Summary

Attributes inherited from ValidationError

#http_status_code

Instance Method Summary collapse

Constructor Details

#initialize(param_def, current_params) ⇒ RequiredParameter


30
31
32
# File 'lib/sinatra/rabbit/validator.rb', line 30

def initialize(param_def, current_params)
  super(400, "Required parameter '%s' not found in [%s]" % [param_def.name, current_params.keys.join(',')])
end