Sha256: b6757434bf08f3fd84d7aa1975cd28089b9b015bf4dd4f5c2e085a31cc1bdbc3

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 Bytes

Contents

module ROM
  module HTTP
    Error = Class.new(StandardError)

    class GatewayConfigurationError < Error
      def initialize(missing_keys)
        if missing_keys.length > 1
          msg = "Missing #{missing_keys[0..-1].join(', ')} and #{missing_keys.last}"
        else
          msg = "Missing #{missing_keys.last}"
        end

        super(msg + ' in ROM::HTTP::Gateway configuration')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rom-http-0.1.0 lib/rom/http/error.rb
rom-http-0.0.1 lib/rom/http/error.rb