Sha256: 3d34758d14a19acec9004d13aa7dcb5c7743cb573b689fd11ca14c3799a15de7

Contents?: true

Size: 697 Bytes

Versions: 28

Compression:

Stored size: 697 Bytes

Contents

module ActiveUtils #:nodoc:
  class HTTPRequestError < StandardError #:nodoc:
  end

  ActiveUtilsError = HTTPRequestError #:nodoc:

  class ConnectionError < HTTPRequestError # :nodoc:
  end

  class RetriableConnectionError < ConnectionError # :nodoc:
  end

  class ResponseError < HTTPRequestError # :nodoc:
    attr_reader :response

    def initialize(response, message = nil)
      @response = response
      @message  = message
    end

    def to_s
      "Failed with #{response.code} #{response.message if response.respond_to?(:message)}"
    end
  end

  class ClientCertificateError < HTTPRequestError # :nodoc
  end

  class InvalidResponseError < HTTPRequestError # :nodoc
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
active_utils-3.4.1 lib/active_utils/error.rb
active_utils-3.4.0 lib/active_utils/error.rb
active_utils-3.3.19 lib/active_utils/error.rb
active_utils-3.3.18 lib/active_utils/error.rb
active_utils-3.3.17 lib/active_utils/error.rb
active_utils-3.3.16 lib/active_utils/error.rb
active_utils-3.3.15 lib/active_utils/error.rb
active_utils-3.3.14 lib/active_utils/error.rb
active_utils-3.3.13 lib/active_utils/error.rb
active_utils-3.3.12 lib/active_utils/error.rb
active_utils-3.3.11 lib/active_utils/error.rb
active_utils-3.3.10 lib/active_utils/error.rb
active_utils-3.3.9 lib/active_utils/error.rb
active_utils-3.3.8 lib/active_utils/error.rb
active_utils-3.3.7 lib/active_utils/error.rb
active_utils-3.3.6 lib/active_utils/error.rb
active_utils-3.3.5 lib/active_utils/error.rb
active_utils-3.3.4 lib/active_utils/error.rb
active_utils-3.3.3 lib/active_utils/error.rb
active_utils-3.3.2 lib/active_utils/error.rb