Exception: Icons::IconNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/icons/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(icon_name = nil) ⇒ IconNotFound

Returns a new instance of IconNotFound.



5
6
7
8
9
10
11
# File 'lib/icons/errors.rb', line 5

def initialize(icon_name = nil)
  if icon_name
    super("The icon `#{icon_name}` is not available. Please check the icon name and try again.")
  else
    super("Icon not found")
  end
end