Exception: Assembla::Error::RequiredParams
- Inherits:
-
ClientError
- Object
- StandardError
- AssemblaError
- ClientError
- Assembla::Error::RequiredParams
- Defined in:
- lib/assembla_api/error/required_params.rb
Instance Attribute Summary
Attributes inherited from ClientError
#problem, #resolution, #summary
Attributes inherited from AssemblaError
#response_headers, #response_message
Instance Method Summary collapse
-
#initialize(provided, required) ⇒ RequiredParams
constructor
A new instance of RequiredParams.
Methods inherited from ClientError
Methods inherited from AssemblaError
Constructor Details
#initialize(provided, required) ⇒ RequiredParams
Returns a new instance of RequiredParams.
7 8 9 10 11 12 13 14 15 |
# File 'lib/assembla_api/error/required_params.rb', line 7 def initialize(provided, required) super( ( :problem => "Missing required parameters: #{provided.keys.join(', ')} provided for this request.", :summary => "Assembla gem checks the request parameters passed to ensure that assembla api is not hit unnecessairly and to fail fast.", :resolution => "Required parameters are: #{required.join(', ')}, make sure these are the ones you are using" ) ) end |