Exception: ScreenshotAPI::AuthenticationError

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) ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



13
14
15
# File 'lib/screenshotapi/errors.rb', line 13

def initialize(message)
  super(message, status: 401, code: "authentication_error")
end