class Puppet::Forge::Errors::SSLVerifyError
This exception is raised when there is an SSL verification error when communicating with the forge.
Public Class Methods
new(options)
click to toggle source
@option options [String] :uri The URI that failed @option options [String] :original the original exception
Calls superclass method
Puppet::Error::new
# File lib/puppet/forge/errors.rb 24 def initialize(options) 25 @uri = options[:uri] 26 original = options[:original] 27 28 super(_("Unable to verify the SSL certificate at %{uri}") % { uri: @uri }, original) 29 end
Public Instance Methods
multiline()
click to toggle source
Return a multiline version of the error message
@return [String] the multiline version of the error message
# File lib/puppet/forge/errors.rb 34 def multiline 35 message = [] 36 message << _('Could not connect via HTTPS to %{uri}') % { uri: @uri } 37 message << _(' Unable to verify the SSL certificate') 38 message << _(' The certificate may not be signed by a valid CA') 39 message << _(' The CA bundle included with OpenSSL may not be valid or up to date') 40 message.join("\n") 41 end