Exception: HTTPX::NativeResolveError
- Inherits:
-
ResolveError
- Object
- StandardError
- Error
- ResolveError
- HTTPX::NativeResolveError
- Defined in:
- lib/httpx/errors.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
-
#initialize(connection, host, message = "Can't resolve #{host}") ⇒ NativeResolveError
constructor
A new instance of NativeResolveError.
Constructor Details
#initialize(connection, host, message = "Can't resolve #{host}") ⇒ NativeResolveError
Returns a new instance of NativeResolveError.
36 37 38 39 40 |
# File 'lib/httpx/errors.rb', line 36 def initialize(connection, host, = "Can't resolve #{host}") @connection = connection @host = host super() end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
34 35 36 |
# File 'lib/httpx/errors.rb', line 34 def connection @connection end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
34 35 36 |
# File 'lib/httpx/errors.rb', line 34 def host @host end |