Exception: PetstoreApiClient::AuthenticationError
- Defined in:
- lib/petstore_api_client/errors.rb
Overview
Authentication errors - thrown when authentication fails
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Authentication failed") ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
Constructor Details
#initialize(message = "Authentication failed") ⇒ AuthenticationError
Returns a new instance of AuthenticationError.
25 26 27 |
# File 'lib/petstore_api_client/errors.rb', line 25 def initialize( = "Authentication failed") super(, status_code: 401, error_type: "Authentication") end |