Exception: RailsHeroicon::UndefinedIcon

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

Instance Method Summary collapse

Constructor Details

#initialize(icon = "", exception_type = "custom") ⇒ UndefinedIcon

Returns a new instance of UndefinedIcon.



12
13
14
15
16
17
# File 'lib/rails_heroicon/errors.rb', line 12

def initialize(icon = "", exception_type = "custom")
  msg = "Couldn't find icon for #{icon}"
  @exception_type = exception_type

  super(msg)
end