Exception: Emasser::ConfigurationEmptyValueError

Inherits:
Error
  • Object
show all
Defined in:
lib/emasser/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config = 'an option', message = 'Environment variable cannot be an empty:') ⇒ ConfigurationEmptyValueError

Returns a new instance of ConfigurationEmptyValueError.



18
19
20
21
# File 'lib/emasser/errors.rb', line 18

def initialize(config = 'an option', message = 'Environment variable cannot be an empty:')
  @config = config
  super("#{message} #{@config}")
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



16
17
18
# File 'lib/emasser/errors.rb', line 16

def config
  @config
end