Module: Net::HTTPExceptions

Included in:
HTTPError, HTTPFatalError, HTTPRetriableError, HTTPServerException
Defined in:
lib/net/http/exceptions.rb

Overview

frozen_string_literal: false Net::HTTP exception class. You cannot use Net::HTTPExceptions directly; instead, you must use its subclasses.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#responseObject (readonly) Also known as: data

Returns the value of attribute response


10
11
12
# File 'lib/net/http/exceptions.rb', line 10

def response
  @response
end

Instance Method Details

#initialize(msg, res) ⇒ Object

:nodoc:


6
7
8
9
# File 'lib/net/http/exceptions.rb', line 6

def initialize(msg, res)   #:nodoc:
  super msg
  @response = res
end