Exception: Github::Error::UnknownMedia
- Inherits:
-
ClientError
- Object
- StandardError
- GithubError
- ClientError
- Github::Error::UnknownMedia
- Defined in:
- lib/github_api/error/unknown_media.rb
Instance Attribute Summary
Attributes inherited from ClientError
#problem, #resolution, #summary
Attributes inherited from GithubError
#response_headers, #response_message
Instance Method Summary collapse
-
#initialize(file) ⇒ UnknownMedia
constructor
A new instance of UnknownMedia.
Methods inherited from ClientError
Methods inherited from GithubError
Constructor Details
#initialize(file) ⇒ UnknownMedia
Returns a new instance of UnknownMedia.
7 8 9 10 11 12 13 14 15 |
# File 'lib/github_api/error/unknown_media.rb', line 7 def initialize(file) super( ( :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 |