Exception: EY::Config::ConfigurationError

Inherits:
Error
  • Object
show all
Defined in:
lib/engineyard/config.rb

Instance Method Summary collapse

Methods inherited from Error

#ambiguous

Constructor Details

#initialize(key, value, source, message = nil) ⇒ ConfigurationError

Returns a new instance of ConfigurationError.



76
77
78
79
# File 'lib/engineyard/config.rb', line 76

def initialize(key, value, source, message=nil)
  super(nil)
  @key, @value, @source, @message = key, value, source, message
end

Instance Method Details

#messageObject



81
82
83
# File 'lib/engineyard/config.rb', line 81

def message
  %|"#{@key}" from #{@source} has invalid value: #{@value.inspect}#{": #{@message}" if @message}|
end