Exception: Textus::FlagRenamed

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

Instance Attribute Summary

Attributes inherited from Error

#code, #details, #exit_code, #hint

Instance Method Summary collapse

Methods inherited from Error

#to_envelope

Constructor Details

#initialize(old_flag, new_flag) ⇒ FlagRenamed

Returns a new instance of FlagRenamed.



177
178
179
180
181
182
183
184
185
# File 'lib/textus/errors.rb', line 177

def initialize(old_flag, new_flag)
  super(
    "flag_renamed",
    "#{old_flag} was renamed in textus/3 — use #{new_flag}",
    details: { "old" => old_flag, "new" => new_flag },
    hint: "Use #{new_flag} instead.",
    exit_code: 2,
  )
end