Exception: PetstoreApiClient::AuthenticationError

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

Overview

Authentication errors - thrown when authentication fails

Since:

  • 0.2.0

Instance Attribute Summary

Attributes inherited from Error

#error_type, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Authentication failed") ⇒ AuthenticationError

Returns a new instance of AuthenticationError.

Since:

  • 0.2.0



25
26
27
# File 'lib/petstore_api_client/errors.rb', line 25

def initialize(message = "Authentication failed")
  super(message, status_code: 401, error_type: "Authentication")
end