Exception: Iconoclasm::InvalidFavicon

Inherits:
Error
  • Object
show all
Defined in:
lib/iconoclasm/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(url, content_type) ⇒ InvalidFavicon

Returns a new instance of InvalidFavicon.



60
61
62
63
# File 'lib/iconoclasm/errors.rb', line 60

def initialize(url, content_type)
  super(url)
  @content_type = content_type
end

Instance Method Details

#messageObject



65
66
67
# File 'lib/iconoclasm/errors.rb', line 65

def message
  "The favicon from #{@url} is invalid (content type is #{@content_type})"
end