Exception: ScreenshotFreeAPI::ForbiddenError

Inherits:
ScreenshotFreeAPIError show all
Defined in:
lib/screenshotfreeapi/errors.rb

Overview

403 — API key revoked or account suspended.

Instance Attribute Summary

Attributes inherited from ScreenshotFreeAPIError

#details, #error_code, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(msg = "Access forbidden") ⇒ ForbiddenError

Returns a new instance of ForbiddenError.



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

def initialize(msg = "Access forbidden")
  super(403, "Forbidden", msg)
end