Exception: CloudParty::Errors::UnknownError

Inherits:
RequestError
  • Object
show all
Defined in:
lib/cloud_party/exceptions.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RequestError

#to_s

Constructor Details

#initialize(obj:, method:, response:, endpoint: nil, code:) ⇒ UnknownError

Returns a new instance of UnknownError.



20
21
22
# File 'lib/cloud_party/exceptions.rb', line 20

def initialize(obj:, method:, response:, endpoint: nil, code:)
  super
end

Class Method Details

.error_stringObject



24
25
26
27
28
29
30
# File 'lib/cloud_party/exceptions.rb', line 24

def self.error_string
  "    An error with the request has occurred, please make\n    sure the method verb, endpoint, and credentials are\n    correct for this request.\n  HEREDOC\nend\n"

.extra_stringObject



32
33
34
35
36
37
38
39
40
41
# File 'lib/cloud_party/exceptions.rb', line 32

def self.extra_string
  "    Credentials Context: \#{@obj&.class&.cfg}\n\n    Method Verb: \#{@method}\n    Endpoint: \#{@endpoint}\n    HTTP Status Code: \#{@code}\n    Response Body: \#{@response.body}\n  HEREDOC\nend\n"