Sha256: ce2d9c15d2427d60d9193516456596c34dbaa16f9b7d21ff409cc52c60679eb7
Contents?: true
Size: 837 Bytes
Versions: 5
Compression:
Stored size: 837 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 2 rubygems