Exception: Textus::FlagRenamed
- Defined in:
- lib/textus/errors.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(old_flag, new_flag) ⇒ FlagRenamed
constructor
A new instance of FlagRenamed.
Methods inherited from Error
#details, #exit_code, #hint, #to_envelope
Constructor Details
#initialize(old_flag, new_flag) ⇒ FlagRenamed
Returns a new instance of FlagRenamed.
213 214 215 216 217 218 219 220 221 |
# File 'lib/textus/errors.rb', line 213 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 |