Exception: Planter::Errors::InputError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/planter/errors.rb

Overview

Argument error class

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ InputError

Returns a new instance of InputError.



17
18
19
20
21
22
23
# File 'lib/planter/errors.rb', line 17

def initialize(msg = nil)
  msg = msg ? "Input: #{msg}" : 'Canceled'

  Planter.notify(msg, :error, exit_code: EXIT_CODES[:canceled])

  super(msg)
end