Exception: PetstoreApiClient::InvalidOrderError

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

Overview

400 errors specific to orders

Instance Attribute Summary

Attributes inherited from Error

#error_type, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Invalid order supplied") ⇒ InvalidOrderError

Returns a new instance of InvalidOrderError.



46
47
48
# File 'lib/petstore_api_client/errors.rb', line 46

def initialize(message = "Invalid order supplied")
  super(message, status_code: 400, error_type: "InvalidOrder")
end