Exception: SimpleImagesDownloader::Errors::BadMimeType
- Inherits:
-
BaseError
- Object
- StandardError
- BaseError
- SimpleImagesDownloader::Errors::BadMimeType
- Defined in:
- lib/simple_images_downloader/errors.rb
Instance Method Summary collapse
-
#initialize(path, mime_type) ⇒ BadMimeType
constructor
A new instance of BadMimeType.
Constructor Details
#initialize(path, mime_type) ⇒ BadMimeType
Returns a new instance of BadMimeType.
32 33 34 35 |
# File 'lib/simple_images_downloader/errors.rb', line 32 def initialize(path, mime_type) = "The image with path: #{path} has wrong mime type #{mime_type}" super() end |