Sha256: 294a29705ca1ca747113691c7bf83ff06d950321c7e7e1e084a9122ec900471b

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

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

  class MissingAttributeError < ConfigurationError
    def initialize(missingAttribute)
      super("#{missingAttribute} is a mandatory 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}")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dropcaster-0.0.2 lib/dropcaster/errors.rb