Exception: Planter::Errors::InputError
- Inherits:
-
StandardError
- Object
- StandardError
- Planter::Errors::InputError
- Defined in:
- lib/planter/errors.rb
Overview
Argument error class
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ InputError
constructor
A new instance of InputError.
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 |