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.



94
95
96
97
98
99
# File 'lib/esse/errors.rb', line 94

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