class Vault::HTTPError
Attributes
Public Class Methods
Source
# File lib/vault/errors.rb, line 69 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
Calls superclass method