Exception: ScreenshotFreeAPI::AuthenticationError
- Inherits:
-
ScreenshotFreeAPIError
- Object
- StandardError
- ScreenshotFreeAPIError
- ScreenshotFreeAPI::AuthenticationError
- Defined in:
- lib/screenshotfreeapi/errors.rb
Overview
401 — Invalid or missing API key / JWT.
Instance Attribute Summary
Attributes inherited from ScreenshotFreeAPIError
#details, #error_code, #status_code
Instance Method Summary collapse
-
#initialize(msg = "Invalid or missing API key") ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
Constructor Details
#initialize(msg = "Invalid or missing API key") ⇒ AuthenticationError
Returns a new instance of AuthenticationError.
18 19 20 |
# File 'lib/screenshotfreeapi/errors.rb', line 18 def initialize(msg = "Invalid or missing API key") super(401, "Unauthorized", msg) end |