Exception: CloudParty::Errors::UnknownError
- Inherits:
-
RequestError
- Object
- StandardError
- RequestError
- CloudParty::Errors::UnknownError
- Defined in:
- lib/cloud_party/exceptions.rb
Instance Method Summary collapse
- #error_string ⇒ Object
- #extra_string ⇒ Object
-
#initialize(message, method, endpoint, code, response) ⇒ UnknownError
constructor
A new instance of UnknownError.
Methods inherited from RequestError
Constructor Details
#initialize(message, method, endpoint, code, response) ⇒ UnknownError
Returns a new instance of UnknownError.
20 21 22 |
# File 'lib/cloud_party/exceptions.rb', line 20 def initialize(, method, endpoint, code, response) super end |
Instance Method Details
#error_string ⇒ Object
24 25 26 27 28 29 30 |
# 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 ⇒ Object
32 33 34 35 36 37 38 39 40 41 |
# 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 |