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, exception) ⇒ HTTPConnectionError

Returns a new instance of HTTPConnectionError.


40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/vault/errors.rb', line 40

def initialize(address, exception)
  @address = address
  @exception = exception

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

The original error was `#{exception.class}'. Additional information (if any) is
shown below:

#{exception.message}

Please refer to the documentation for more help.
EOH
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.


38
39
40
# File 'lib/vault/errors.rb', line 38

def address
  @address
end

Instance Method Details

#original_exceptionObject


58
59
60
# File 'lib/vault/errors.rb', line 58

def original_exception
  @exception
end