Exception: Planter::Errors::ArgumentError
- Inherits:
-
StandardError
- Object
- StandardError
- Planter::Errors::ArgumentError
- Defined in:
- lib/planter/errors.rb
Overview
Argument error class
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ ArgumentError
constructor
A new instance of ArgumentError.
Constructor Details
#initialize(msg = nil) ⇒ ArgumentError
Returns a new instance of ArgumentError.
28 29 30 31 32 33 34 |
# File 'lib/planter/errors.rb', line 28 def initialize(msg = nil) msg = msg ? "Argument error: #{msg}" : 'Argument error' Planter.notify(msg, :error, exit_code: EXIT_CODES[:argument]) super(msg) end |