Exception: Hocon::ConfigError::ConfigWrongTypeError

Inherits:
Hocon::ConfigError 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

.with_expected_actual(origin, path, expected, actual, cause = nil) ⇒ Object



41
42
43
# File 'lib/hocon/config_error.rb', line 41

def self.with_expected_actual(origin, path, expected, actual, cause = nil)
  ConfigWrongTypeError.new(origin, "#{path} has type #{actual} rather than #{expected}", cause)
end