Exception: Esse::CLI::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/esse/errors.rb

Direct Known Subclasses

InvalidOption

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, **message_attributes) ⇒ Error

Returns a new instance of Error.



107
108
109
110
111
112
# File 'lib/esse/errors.rb', line 107

def initialize(msg = nil, **message_attributes)
  if message_attributes.any?
    msg = format(msg, **message_attributes)
  end
  super(msg)
end