Exception: ScreenshotFreeAPI::AuthenticationError

Inherits:
ScreenshotFreeAPIError show all
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

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