Exception: Assembla::Error::Validations

Inherits:
ClientError show all
Defined in:
lib/assembla_api/error/validations.rb

Instance Attribute Summary

Attributes inherited from ClientError

#problem, #resolution, #summary

Attributes inherited from AssemblaError

#response_headers, #response_message

Instance Method Summary collapse

Methods inherited from ClientError

#generate_message

Methods inherited from AssemblaError

#backtrace

Constructor Details

#initialize(errors) ⇒ Validations

Returns a new instance of Validations.



7
8
9
10
11
12
13
14
15
# File 'lib/assembla_api/error/validations.rb', line 7

def initialize(errors)
  super(
    generate_message(
      :problem => "Attempted to send request with nil arguments for #{errors.keys.join(', ')}.",
      :summary => 'Each request expects certain number of required arguments.',
      :resolution => 'Double check that the provided arguments are set to some value that is neither nil nor empty string.'
    )
  )
end