Exception: CloudParty::Errors::NotFoundError
- Inherits:
-
RequestError
- Object
- StandardError
- RequestError
- CloudParty::Errors::NotFoundError
- Defined in:
- lib/cloud_party/exceptions/request_errors/not_found_error.rb
Overview
Page/Endpoint doesn’t exist
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(obj:, method:, response:, endpoint: nil, code: 404) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Methods inherited from RequestError
#error_string, #extra_string, #to_s
Constructor Details
#initialize(obj:, method:, response:, endpoint: nil, code: 404) ⇒ NotFoundError
Returns a new instance of NotFoundError.
8 9 10 |
# File 'lib/cloud_party/exceptions/request_errors/not_found_error.rb', line 8 def initialize(obj:, method:, response:, endpoint: nil, code: 404) super end |
Class Method Details
.error_string ⇒ Object
12 13 14 15 16 |
# File 'lib/cloud_party/exceptions/request_errors/not_found_error.rb', line 12 def self.error_string <<~HEREDOC There was a '404 -- Not Found' error. HEREDOC end |
.extra_string ⇒ Object
18 19 20 21 22 23 |
# File 'lib/cloud_party/exceptions/request_errors/not_found_error.rb', line 18 def self.extra_string <<~HEREDOC VERB: #{@method} HEREDOC end |