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



14
15
16
17
18
19
20
# File 'lib/hocon/config_error.rb', line 14

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