lib/qonfig/errors.rb in qonfig-0.16.0 vs lib/qonfig/errors.rb in qonfig-0.17.0

- old
+ new

@@ -45,12 +45,12 @@ # @since 0.2.0 AmbiguousSettingValueError = Class.new(Error) # @see Qonfig::Settings # @see Qonfig::Settings::KeyGuard - # @see Qonfig::Commands::AddOption - # @see Qonfig::Commands::AddNestedOption + # @see Qonfig::Commands::Definition::AddOption + # @see Qonfig::Commands::Definition::AddNestedOption # # @api public # @since 0.2.0 CoreMethodIntersectionError = Class.new(Error) @@ -67,41 +67,68 @@ Class.new(::RuntimeError) end # :nocov: end - # @see Qonfig::Commands::LoadFromYAML + # @see Qonfig::Commands::Instantiation::ValuesFile # # @api public + # @since 0.17.0 + IncompatibleDataStructureError = Class.new(Error) + + # @see Qonfig::Commands::Definition::LoadFromYAML + # + # @api public # @since 0.2.0 - IncompatibleYAMLStructureError = Class.new(Error) + IncompatibleYAMLStructureError = Class.new(IncompatibleDataStructureError) - # @see Qonfig::Commands::LoadFromJSON + # @see Qonfig::Commands::Definition::LoadFromJSON # # @api public # @since 0.5.0 - IncompatibleJSONStructureError = Class.new(Error) + IncompatibleJSONStructureError = Class.new(IncompatibleDataStructureError) - # @see Qonfig::Commands::LoadFromSelf - # @see Qonfig::Commands::ExposeSelf + # @see Qonfig::Commands::Definition::LoadFromSelf + # @see Qonfig::Commands::Definition::ExposeSelf # # @api public # @since 0.15.0 - IncompatibleEndDataStructureError = Class.new(Error) + IncompatibleEndDataStructureError = Class.new(IncompatibleDataStructureError) # @see Qonfig::Loaders::YAML # # @api public # @since 0.2.0 FileNotFoundError = Class.new(Errno::ENOENT) - # @see Qonfig::Commands::LoadFromSelf + # @see Qonfig::Commands::Definition::LoadFromSelf + # @see Qonfig::Loaders::EndData # # @api public # @since 0.2.0 SelfDataNotFoundError = Class.new(Error) + # @see Qonfig::Loaders::JSON + # @see Qonfig::Loaders::Dynamic + # + # @api public + # @since 0.17.0 + JSONLoaderParseError = Class.new(::JSON::ParserError) + + # @see Qonfig::Loaders::YAML + # @see Qonfig::Loaders::Dynamic + # + # @api public + # @since 0.17.0 + YAMLLoaderParseError = Class.new(::Psych::SyntaxError) + + # @see Qonfig::Loaders::Dynamic + # + # @api public + # @since 0.17.0 + DynamicLoaderParseError = Class.new(Error) + # @see Qonfig::Plugins::Regsitry # # @api private # @since 0.4.0 AlreadyRegisteredPluginError = Class.new(Error) @@ -110,10 +137,10 @@ # # @api public # @since 0.4.0 UnregisteredPluginError = Class.new(Error) - # @see Qonfig::Commands::ExposeYAML + # @see Qonfig::Commands::Definition::ExposeYAML # # @api public # @since 0.7.0 ExposeError = Class.new(Error)