Exception: Healthicons::Errors::UnknownIcon

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

Instance Method Summary collapse

Constructor Details

#initialize(icon = '') ⇒ String

Create an error for an unknwon icon

Parameters:

  • icon (String) (defaults to: '')


10
11
12
13
# File 'lib/healthicons/errors.rb', line 10

def initialize(icon = '')
  msg = "The #{icon} icon could not be found."
  super(msg)
end