Sha256: 7d8254ccf9bf52a3936e10e409d2bc9e2f080b049a346c46d089fda60e63d00e

Contents?: true

Size: 718 Bytes

Versions: 3

Compression:

Stored size: 718 Bytes

Contents

# frozen_string_literal: true

module Dropcaster
  class ConfigurationError < StandardError
    def initialize(msg)
      super(msg)
    end
  end

  class MissingAttributeError < ConfigurationError
    def initialize(missing_attribute)
      super("#{missing_attribute} is a mandatory channel attribute, but it is missing.")
    end
  end

  class AmbiguousSourcesError < ConfigurationError
    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)
      super("Unable to load template file: #{message}")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dropcaster-1.2.0 lib/dropcaster/errors.rb
dropcaster-1.1.0 lib/dropcaster/errors.rb
dropcaster-1.0.0 lib/dropcaster/errors.rb