Sha256: 1e8b53bc090b6473f72982fcf1bc53a4ec55a30232b128dcb27bf96d3eed8d15

Contents?: true

Size: 575 Bytes

Versions: 18

Compression:

Stored size: 575 Bytes

Contents

# encoding: utf-8

module Github #: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 arguments.',
            :resolution => 'Double check that the provided arguments are set to some value.'
          )
        )
      end
    end
  end # Error
end # Github

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
github_api-0.9.0 lib/github_api/error/validations.rb
github_api-0.8.11 lib/github_api/error/validations.rb
github_api-0.8.10 lib/github_api/error/validations.rb
github_api-0.8.9 lib/github_api/error/validations.rb
github_api-0.8.8 lib/github_api/error/validations.rb
github_api-0.8.7 lib/github_api/error/validations.rb
github_api-0.8.6 lib/github_api/error/validations.rb
github_api-0.8.5 lib/github_api/error/validations.rb
github_api-0.8.4 lib/github_api/error/validations.rb
github_api-0.8.3 lib/github_api/error/validations.rb
github_api-0.8.2 lib/github_api/error/validations.rb
github_api-0.8.1 lib/github_api/error/validations.rb
github_api-0.8.0 lib/github_api/error/validations.rb
github_api-0.7.2 lib/github_api/error/validations.rb
github_api-0.7.1 lib/github_api/error/validations.rb
github_api-0.7.0 lib/github_api/error/validations.rb
github_api-0.6.5 lib/github_api/error/validations.rb
github_api-0.6.4 lib/github_api/error/validations.rb