Exception: PetstoreApiClient::NotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/petstore_api_client/errors.rb

Overview

404 errors

Instance Attribute Summary

Attributes inherited from Error

#error_type, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Resource not found") ⇒ NotFoundError

Returns a new instance of NotFoundError.



32
33
34
# File 'lib/petstore_api_client/errors.rb', line 32

def initialize(message = "Resource not found")
  super(message, status_code: 404, error_type: "NotFound")
end