Exception: TrueTrial::AuthenticationError
- Defined in:
- lib/truetrial/errors.rb
Overview
Raised when the API key is missing or invalid (HTTP 401).
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Invalid or missing API key", response_body: nil) ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
Constructor Details
#initialize(message = "Invalid or missing API key", response_body: nil) ⇒ AuthenticationError
Returns a new instance of AuthenticationError.
17 18 19 |
# File 'lib/truetrial/errors.rb', line 17 def initialize( = "Invalid or missing API key", response_body: nil) super(, status_code: 401, response_body: response_body) end |