Exception: ScreenshotAPI::NetworkError

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

Returns a new instance of NetworkError.



40
41
42
# File 'lib/screenshotapi/errors.rb', line 40

def initialize(message)
  super(message, status: nil, code: "network_error")
end