Sha256: 4bb9a8ea7b820159f98b272cb930e69438a5e8f5256a613652e3d19e23edad63

Contents?: true

Size: 600 Bytes

Versions: 14

Compression:

Stored size: 600 Bytes

Contents

# encoding: utf-8

module Github #:nodoc
  # Raised when invalid options are passed to a request body
  module Error
    class UnknownMedia < ClientError
      def initialize(file)
        super(
          generate_message(
            :problem => "Unknown content type for: '#{file}' provided for this request.",
            :summary => "Github gem infers the content type of the resource by calling the mime-types gem type inference.",
            :resolution => "Please install mime-types gem to infer the resource content type."
          )
        )
      end
    end
  end # Error
end # Github

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
github_api-0.14.2 lib/github_api/error/unknown_media.rb
github_api-0.14.1 lib/github_api/error/unknown_media.rb
github_api-0.14.0 lib/github_api/error/unknown_media.rb
github_api-0.13.1 lib/github_api/error/unknown_media.rb
github_api-0.13.0 lib/github_api/error/unknown_media.rb
github_api-0.12.4 lib/github_api/error/unknown_media.rb
github_api-0.12.3 lib/github_api/error/unknown_media.rb
github_api-0.12.2 lib/github_api/error/unknown_media.rb
github_api-0.12.1 lib/github_api/error/unknown_media.rb
github_api-0.12.0 lib/github_api/error/unknown_media.rb
github_api-0.11.3 lib/github_api/error/unknown_media.rb
github_api-0.11.2 lib/github_api/error/unknown_media.rb
github_api-0.11.1 lib/github_api/error/unknown_media.rb
github_api-0.11.0 lib/github_api/error/unknown_media.rb