PHP 8.2.31
Preview: exceptions.rb Size: 873 B
//proc/thread-self/root/opt/alt/ruby26/lib64/ruby/2.6.0/net/http/exceptions.rb

# frozen_string_literal: false
# Net::HTTP exception class.
# You cannot use Net::HTTPExceptions directly; instead, you must use
# its subclasses.
module Net::HTTPExceptions
  def initialize(msg, res)   #:nodoc:
    super msg
    @response = res
  end
  attr_reader :response
  alias data response    #:nodoc: obsolete
end
class Net::HTTPError < Net::ProtocolError
  include Net::HTTPExceptions
end
class Net::HTTPRetriableError < Net::ProtoRetriableError
  include Net::HTTPExceptions
end
class Net::HTTPServerException < Net::ProtoServerError
  # We cannot use the name "HTTPServerError", it is the name of the response.
  include Net::HTTPExceptions
end

# for compatibility
Net::HTTPClientException = Net::HTTPServerException

class Net::HTTPFatalError < Net::ProtoFatalError
  include Net::HTTPExceptions
end

module Net
  deprecate_constant(:HTTPServerException)
end

Directory Contents

Dirs: 0 × Files: 10

Name Size Perms Modified Actions
609 B lrw-r--r-- 2022-04-12 11:50:11
Edit Download
873 B lrw-r--r-- 2022-04-12 11:50:11
Edit Download
9.50 KB lrw-r--r-- 2022-04-12 11:50:11
Edit Download
15.83 KB lrw-r--r-- 2022-04-12 11:50:11
Edit Download
272 B lrw-r--r-- 2022-04-12 11:50:11
Edit Download
746 B lrw-r--r-- 2022-04-12 11:50:11
Edit Download
2.91 KB lrw-r--r-- 2022-04-12 11:50:11
Edit Download
10.26 KB lrw-r--r-- 2022-04-12 11:50:11
Edit Download
9.80 KB lrw-r--r-- 2022-04-12 11:50:11
Edit Download
2.21 KB lrw-r--r-- 2022-04-12 11:50:11
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).