Sha256: 331b47217b28546c9ea039fd270747f4b51d63e9fc378bb004d08d5305858df3

Contents?: true

Size: 683 Bytes

Versions: 6

Compression:

Stored size: 683 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 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}")
    end
  end

  class TemplateNotFoundError < ConfigurationError
    def initialize(message)
      super("Unable to load template file: #{message}")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dropcaster-0.0.8 lib/dropcaster/errors.rb
dropcaster-0.0.7 lib/dropcaster/errors.rb
dropcaster-0.0.6 lib/dropcaster/errors.rb
dropcaster-0.0.5 lib/dropcaster/errors.rb
dropcaster-0.0.5.rc3 lib/dropcaster/errors.rb
dropcaster-0.0.5.rc1 lib/dropcaster/errors.rb