Exception: Icons::IconNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- Icons::IconNotFound
- Defined in:
- lib/icons/errors.rb
Instance Method Summary collapse
-
#initialize(icon_name = nil) ⇒ IconNotFound
constructor
A new instance of IconNotFound.
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 |