Exception: ScreenshotAPI::ScreenshotFailedError

Inherits:
APIError
  • Object
show all
Defined in:
lib/screenshotapi/errors.rb

Instance Attribute Summary

Attributes inherited from APIError

#code, #status

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ScreenshotFailedError

Returns a new instance of ScreenshotFailedError.



34
35
36
# File 'lib/screenshotapi/errors.rb', line 34

def initialize(message)
  super(message, status: 500, code: "screenshot_failed")
end