Sha256: 8ca003d167fd01877b13bcd908fe53b92239a493dd8e404ee91bfec00dd49caf
Contents?: true
Size: 838 Bytes
Versions: 4
Compression:
Stored size: 838 Bytes
Contents
# frozen_string_literal: false module Net # Net::HTTP exception class. # You cannot use Net::HTTPExceptions directly; instead, you must use # its subclasses. module HTTPExceptions def initialize(msg, res) #:nodoc: super msg @response = res end attr_reader :response alias data response #:nodoc: obsolete end class HTTPError < ProtocolError include HTTPExceptions end class HTTPRetriableError < ProtoRetriableError include HTTPExceptions end class HTTPClientException < ProtoServerError include HTTPExceptions end class HTTPFatalError < ProtoFatalError include HTTPExceptions end # We cannot use the name "HTTPServerError", it is the name of the response. HTTPServerException = HTTPClientException # :nodoc: deprecate_constant(:HTTPServerException) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
net-http-0.3.0.1 | lib/net/http/exceptions.rb |
net-http-0.3.2 | lib/net/http/exceptions.rb |
net-http-0.3.1 | lib/net/http/exceptions.rb |
net-http-0.3.0 | lib/net/http/exceptions.rb |