Exception: PetstoreApiClient::ConnectionError

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

Overview

Network/connection issues

Instance Attribute Summary

Attributes inherited from Error

#error_type, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Failed to connect to the API") ⇒ ConnectionError

Returns a new instance of ConnectionError.



53
54
55
# File 'lib/petstore_api_client/errors.rb', line 53

def initialize(message = "Failed to connect to the API")
  super(message, status_code: nil, error_type: "Connection")
end