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.



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

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