Exception: Emasser::ConfigurationMissingError

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 = 'No configuration was provided for variable:') ⇒ ConfigurationMissingError

Returns a new instance of ConfigurationMissingError.



9
10
11
12
# File 'lib/emasser/errors.rb', line 9

def initialize(config = 'an option', message = 'No configuration was provided for variable:')
  @config = config
  super("#{message} #{@config}")
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



7
8
9
# File 'lib/emasser/errors.rb', line 7

def config
  @config
end