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.
56 57 58 59 60 |
# File 'lib/httpx/errors.rb', line 56 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.
54 55 56 |
# File 'lib/httpx/errors.rb', line 54 def connection @connection end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
54 55 56 |
# File 'lib/httpx/errors.rb', line 54 def host @host end |