lib/table_sync/errors.rb in table_sync-2.1.0 vs lib/table_sync/errors.rb in table_sync-2.2.0

- old
+ new

@@ -36,6 +36,28 @@ Some target keys not found in received attributes! (Expects: #{target_keys}, Actual: #{target_attributes.keys}) MSG end end + + # @api public + # @since 2.2.0 + PluginError = Class.new(Error) + + # @api public + # @since 2.2.0 + class UnregisteredPluginError < PluginError + # @param plugin_name [Any] + def initialize(plugin_name) + super("#{plugin_name} plugin is not registered") + end + end + + # @api public + # @since 2.2.0 + class AlreadyRegisteredPluginError < PluginError + # @param plugin_name [Any] + def initialize(plugin_name) + super("#{plugin_name} plugin already exists") + end + end end