PHP 8.2.31
Preview: exceptions.rb Size: 873 B
/proc/thread-self/root/opt/alt/ruby27/share/ruby/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-- 2023-03-30 12:34:08
Edit Download
873 B lrw-r--r-- 2023-03-30 12:34:08
Edit Download
9.51 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
16.18 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
272 B lrw-r--r-- 2023-03-30 12:34:08
Edit Download
746 B lrw-r--r-- 2023-03-30 12:34:08
Edit Download
2.91 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
10.57 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
9.80 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
2.19 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download

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