lib/qonfig/error.rb in qonfig-0.1.0 vs lib/qonfig/error.rb in qonfig-0.2.0
- old
+ new
@@ -7,13 +7,59 @@
# @api public
# @since 0.1.0
ArgumentError = Class.new(Error)
+ # @see Qonfig::Settings
+ #
# @api public
# @since 0.1.0
UnknownSettingError = Class.new(Error)
+ # @see Qonfig::Settings
+ #
# @api public
+ # @since 0.2.0
+ AmbiguousSettingValueError = Class.new(Error)
+
+ # @see Qonfig::Settings
+ # @see Qonfig::Settings::KeyGuard
+ # @see Qonfig::Commands::AddOption
+ # @see Qonfig::Commands::AddNestedOption
+ #
+ # @api public
+ # @since 0.2.0
+ CoreMethodIntersectionError = Class.new(Error)
+
+ # @see Qonfig::Settings
+ # @see Qonfig::DataSet
+ #
+ # @api public
# @since 0.1.0
- FrozenSettingsError = Class.new(Error)
+ FrozenSettingsError = begin # rubocop:disable Naming/ConstantName
+ # :nocov:
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.5.0')
+ Class.new(::FrozenError)
+ else
+ Class.new(::RuntimeError)
+ end
+ # :nocov:
+ end
+
+ # @see Qonfig::Commands::LoadFromYAML
+ #
+ # @api public
+ # @since 0.2.0
+ IncompatibleYAMLStructureError = Class.new(Error)
+
+ # @see Qonfig::Loaders::YAML
+ #
+ # @api public
+ # @since 0.2.0
+ FileNotFoundError = Class.new(Errno::ENOENT)
+
+ # @see Qonfig::Commands::LoadFromSelf
+ #
+ # @api public
+ # @since 0.2.0
+ SelfDataNotFoundError = Class.new(Error)
end