Sha256: 84c481680d0cf98a596929164f3100af57dea38ab9492f3bf98e9b7123cf97be

Contents?: true

Size: 621 Bytes

Versions: 24

Compression:

Stored size: 621 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 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 # Github

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
github_api-0.9.4 lib/github_api/error/validations.rb
github_api-0.9.3 lib/github_api/error/validations.rb
github_api-0.9.2 lib/github_api/error/validations.rb
github_api-0.9.1 lib/github_api/error/validations.rb