Exception: ScreenshotScout::ResponseDecodingError

Inherits:
Error
  • Object
show all
Defined in:
lib/screenshotscout/errors.rb,
sig/screenshotscout.rbs

Overview

Raised when a successful response cannot be decoded as its expected type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, raw_response) ⇒ ResponseDecodingError

Returns a new instance of ResponseDecodingError.

Parameters:



54
55
56
57
# File 'lib/screenshotscout/errors.rb', line 54

def initialize(message, raw_response)
  super(message)
  @raw_response = raw_response
end

Instance Attribute Details

#raw_responseRawResponse (readonly)

Returns the value of attribute raw_response.

Returns:



52
53
54
# File 'lib/screenshotscout/errors.rb', line 52

def raw_response
  @raw_response
end