class Vault::HTTPError
Attributes
address[R]
code[R]
errors[R]
response[R]
Public Class Methods
new(address, response, errors = [])
click to toggle source
Calls superclass method
# File lib/vault/errors.rb, line 54 def initialize(address, response, errors = []) @address, @response, @errors = address, response, errors @code = response.code.to_i errors = errors.map { |error| " * #{error}" } super <<-EOH The Vault server at `#{address}' responded with a #{code}. Any additional information the server supplied is shown below: #{errors.join("\n").rstrip} Please refer to the documentation for help. EOH end