Exception: Vault::HTTPConnectionError

Inherits:
VaultError
  • Object
show all
Defined in:
lib/vault/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address) ⇒ HTTPConnectionError

Returns a new instance of HTTPConnectionError.



20
21
22
23
24
25
26
27
28
# File 'lib/vault/errors.rb', line 20

def initialize(address)
  @address = address

  super <<-EOH
The Vault server at `#{address}' is not currently
accepting connections. Please ensure that the server is running an that your
authentication information is correct.
EOH
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



18
19
20
# File 'lib/vault/errors.rb', line 18

def address
  @address
end