lib/dropcaster/errors.rb in dropcaster-0.0.8 vs lib/dropcaster/errors.rb in dropcaster-1.0.0

- old
+ new

@@ -1,20 +1,22 @@ +# frozen_string_literal: true + module Dropcaster class ConfigurationError < StandardError def initialize(msg) super(msg) end end class MissingAttributeError < ConfigurationError - def initialize(missingAttribute) - super("#{missingAttribute} is a mandatory channel attribute, but it is missing.") + def initialize(missing_attribute) + super("#{missing_attribute} is a mandatory channel attribute, but it is missing.") end end class AmbiguousSourcesError < ConfigurationError - def initialize(ambiguousSources) - super("The list of sources is ambiguous. Can't derive common directory from these: #{ambiguousSources.inspect}") + def initialize(ambiguous_sources) + super("The list of sources is ambiguous. Can't derive common directory from these: #{ambiguous_sources.inspect}") end end class TemplateNotFoundError < ConfigurationError def initialize(message)