Exception: Vault::HTTPConnectionError
- Inherits:
-
VaultError
- Object
- RuntimeError
- VaultError
- Vault::HTTPConnectionError
- Defined in:
- lib/vault/errors.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
Instance Method Summary collapse
-
#initialize(address, exception) ⇒ HTTPConnectionError
constructor
A new instance of HTTPConnectionError.
- #original_exception ⇒ Object
Constructor Details
#initialize(address, exception) ⇒ HTTPConnectionError
Returns a new instance of HTTPConnectionError.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/vault/errors.rb', line 28 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.} Please refer to the documentation for more help. EOH end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
26 27 28 |
# File 'lib/vault/errors.rb', line 26 def address @address end |
Instance Method Details
#original_exception ⇒ Object
46 47 48 |
# File 'lib/vault/errors.rb', line 46 def original_exception @exception end |