Exception: Sinatra::Rabbit::Validator::RequiredParameter
- Inherits:
-
ValidationError
- Object
- StandardError
- ValidationError
- Sinatra::Rabbit::Validator::RequiredParameter
- Defined in:
- lib/sinatra/rabbit/validator.rb
Instance Attribute Summary
Attributes inherited from ValidationError
Instance Method Summary collapse
-
#initialize(param_def, current_params) ⇒ RequiredParameter
constructor
A new instance of RequiredParameter.
Constructor Details
#initialize(param_def, current_params) ⇒ RequiredParameter
Returns a new instance of 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 |