class CloudParty::Errors::UnknownError

Public Class Methods

new(message, method, endpoint, code, response) click to toggle source
Calls superclass method CloudParty::Errors::RequestError::new
# File lib/cloud_party/exceptions.rb, line 20
def initialize(message, method, endpoint, code, response)
  super
end

Public Instance Methods

error_string() click to toggle source
# File lib/cloud_party/exceptions.rb, line 24
      def error_string
        <<~HEREDOC
          An error with the request has occurred, please make
          sure the method verb, endpoint, and credentials are
          correct for this request.
        HEREDOC
      end
extra_string() click to toggle source
# File lib/cloud_party/exceptions.rb, line 32
      def extra_string
        <<~HEREDOC
          Credentials Context: #{@obj&.class&.cfg}

          Method Verb: #{@method}
          Endpoint: #{@endpoint}
          HTTP Status Code: #{@code}
          Response Body: #{@response&.body}
        HEREDOC
      end