Exception: ScreenshotScout::SerializationError

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

Overview

Raised when a capture option cannot be represented safely on the wire.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, option: nil) ⇒ SerializationError

Returns a new instance of SerializationError.

Parameters:

  • message (String)
  • option: (String, Symbol, nil) (defaults to: nil)


14
15
16
17
# File 'lib/screenshotscout/errors.rb', line 14

def initialize(message, option: nil)
  super(message)
  @option = option
end

Instance Attribute Details

#optionString, ... (readonly)

Returns the value of attribute option.

Returns:

  • (String, Symbol, nil)


12
13
14
# File 'lib/screenshotscout/errors.rb', line 12

def option
  @option
end