Sha256: 8540f45468214e3e50d539be74b8b0a13eefed3e473e0f865ddcf3fad29ed660

Contents?: true

Size: 290 Bytes

Versions: 18

Compression:

Stored size: 290 Bytes

Contents

# encoding: utf-8

module Hyperdrive
  module Errors 
    class HTTPError < RuntimeError
      attr_reader :http_status_code, :message
      def initialize(message, http_status_code = 500)
        @message = message
        @http_status_code = http_status_code
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
hyperdrive-0.0.25 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.24 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.23 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.22 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.21 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.20 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.19 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.18 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.17 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.16 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.15 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.14 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.13 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.12 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.11 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.10 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.9 lib/hyperdrive/errors/http_error.rb
hyperdrive-0.0.8 lib/hyperdrive/errors/http_error.rb