Exception: Planter::Errors::ConfigError
- Inherits:
-
StandardError
- Object
- StandardError
- Planter::Errors::ConfigError
- Defined in:
- lib/planter/errors.rb
Overview
Configuration error class
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ ConfigError
constructor
A new instance of ConfigError.
Constructor Details
#initialize(msg = nil) ⇒ ConfigError
Returns a new instance of ConfigError.
51 52 53 54 55 56 57 |
# File 'lib/planter/errors.rb', line 51 def initialize(msg = nil) msg = msg ? "Config: #{msg}" : 'Configuration error' Planter.spinner.error('(Error)') Planter.notify(msg, :error, exit_code: EXIT_CODES[:config]) super(msg) end |