Exception: Hanami::Utils::ShellColor::UnknownColorCodeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hanami/utils/shell_color.rb

Overview

Error raised for unknown color codes.

Since:

  • 1.2.0

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ UnknownColorCodeError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of UnknownColorCodeError.

Since:

  • 1.2.0



20
21
22
# File 'lib/hanami/utils/shell_color.rb', line 20

def initialize(code)
  super("unknown color code: `#{code.inspect}'")
end