Server IP : 66.29.132.122 / Your IP : 3.128.199.138 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hocon-1.3.1/lib/hocon/ |
Upload File : |
# encoding: utf-8 require 'hocon' class Hocon::ConfigError < StandardError def initialize(origin, message, cause) msg = if origin.nil? message else "#{origin.description}: #{message}" end super(msg) @origin = origin @cause = cause end class ConfigMissingError < Hocon::ConfigError end class ConfigNullError < Hocon::ConfigError::ConfigMissingError 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 end class ConfigIOError < Hocon::ConfigError def initialize(origin, message, cause = nil) super(origin, message, cause) end end class ConfigParseError < Hocon::ConfigError end class ConfigWrongTypeError < Hocon::ConfigError def self.with_expected_actual(origin, path, expected, actual, cause = nil) ConfigWrongTypeError.new(origin, "#{path} has type #{actual} rather than #{expected}", cause) end end class ConfigBugOrBrokenError < Hocon::ConfigError def initialize(message, cause = nil) super(nil, message, cause) end end class ConfigNotResolvedError < Hocon::ConfigError::ConfigBugOrBrokenError end class ConfigBadPathError < Hocon::ConfigError def initialize(origin, path, message, cause = nil) error_message = !path.nil? ? "Invalid path '#{path}': #{message}" : message super(origin, error_message, cause) end end class UnresolvedSubstitutionError < ConfigParseError def initialize(origin, detail, cause = nil) super(origin, "Could not resolve substitution to a value: " + detail, cause) end end end