Sha256: 5840de3b42dbdd1921abea8b26e9eccc6732e0c862d2f58b45d054bcfbdf5544

Contents?: true

Size: 619 Bytes

Versions: 20

Compression:

Stored size: 619 Bytes

Contents

# encoding: utf-8

module Nimbu #:nodoc
  # Raised when passed parameters are missing or contain wrong values.
  module Error
    class Validations < ClientError
      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
    end
  end # Error
end # Nimbu

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
nimbu-api-0.5.0 lib/nimbu-api/errors/validations.rb
nimbu-api-0.4.4 lib/nimbu-api/errors/validations.rb
nimbu-api-0.4.3 lib/nimbu-api/errors/validations.rb
nimbu-api-0.4.2 lib/nimbu-api/errors/validations.rb
nimbu-api-0.4.1 lib/nimbu-api/errors/validations.rb
nimbu-api-0.4.0 lib/nimbu-api/errors/validations.rb
nimbu-api-0.3.0 lib/nimbu-api/errors/validations.rb
nimbu-api-0.2.1 lib/nimbu-api/errors/validations.rb
nimbu-api-0.2 lib/nimbu-api/errors/validations.rb
nimbu-api-0.2.beta.3 lib/nimbu-api/errors/validations.rb
nimbu-api-0.2.beta.2 lib/nimbu-api/errors/validations.rb
nimbu-api-0.2.beta.1 lib/nimbu-api/errors/validations.rb
nimbu-api-0.2.beta lib/nimbu-api/errors/validations.rb
nimbu-api-0.1.5 lib/nimbu-api/errors/validations.rb
nimbu-api-0.1.4 lib/nimbu-api/errors/validations.rb
nimbu-api-0.1.3 lib/nimbu-api/errors/validations.rb
nimbu-api-0.1.1 lib/nimbu-api/errors/validations.rb
nimbu-api-0.1 lib/nimbu-api/errors/validations.rb
nimbu-api-0.0.2 lib/nimbu-api/errors/validations.rb
nimbu-api-0.0.1 lib/nimbu-api/errors/validations.rb