Exception: Hocon::ConfigError::ConfigNullError

Inherits:
ConfigMissingError show all
Defined in:
lib/hocon/config_error.rb

Class Method Summary collapse

Methods inherited from Hocon::ConfigError

#initialize

Constructor Details

This class inherits a constructor from Hocon::ConfigError

Class Method Details

.make_message(path, expected) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/hocon/config_error.rb', line 22

def self.make_message(path, expected)
  if not expected.nil?
    "Configuration key '#{path}' is set to nil but expected #{expected}"
  else
    "Configuration key '#{path}' is nil"
  end
end