Exception: Puppet::Forge::Errors::SSLVerifyError Private
- Inherits:
-
ForgeError
- Object
- RuntimeError
- Error
- ForgeError
- Puppet::Forge::Errors::SSLVerifyError
- Defined in:
- lib/puppet/forge/errors.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
This exception is raised when there is an SSL verification error when communicating with the forge.
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(options) ⇒ SSLVerifyError
constructor
private
A new instance of SSLVerifyError.
-
#multiline ⇒ String
private
Return a multiline version of the error message.
Constructor Details
#initialize(options) ⇒ SSLVerifyError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of SSLVerifyError.
25 26 27 28 29 30 |
# File 'lib/puppet/forge/errors.rb', line 25 def initialize() @uri = [:uri] original = [:original] super(_("Unable to verify the SSL certificate at %{uri}") % { uri: @uri }, original) end |
Instance Method Details
#multiline ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return a multiline version of the error message
35 36 37 38 39 40 41 42 |
# File 'lib/puppet/forge/errors.rb', line 35 def multiline = [] << _('Could not connect via HTTPS to %{uri}') % { uri: @uri } << _(' Unable to verify the SSL certificate') << _(' The certificate may not be signed by a valid CA') << _(' The CA bundle included with OpenSSL may not be valid or up to date') .join("\n") end |