Class: IconGenerator::Error

Inherits:
Thor::Error
  • Object
show all
Defined in:
lib/icon_generator/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(message = "Icon generation failed") ⇒ Error

Returns a new instance of Error.



3
4
5
# File 'lib/icon_generator/error.rb', line 3

def initialize(message = "Icon generation failed")
    super(Thor::Shell::Color.new.set_color message, :red)
end