Exception: PetstoreApiClient::InvalidInputError

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

Overview

405 or 400 errors for bad input

Instance Attribute Summary

Attributes inherited from Error

#error_type, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Invalid input provided") ⇒ InvalidInputError

Returns a new instance of InvalidInputError.



39
40
41
# File 'lib/petstore_api_client/errors.rb', line 39

def initialize(message = "Invalid input provided")
  super(message, status_code: 405, error_type: "InvalidInput")
end