Exception: SimpleImagesDownloader::Errors::BadMimeType

Inherits:
BaseError
  • Object
show all
Defined in:
lib/simple_images_downloader/errors.rb

Instance Method Summary collapse

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)
  message = "The image with path: #{path} has wrong mime type #{mime_type}"
  super(message)
end