Exception: Ferrum::InvalidScreenshotFormatError
- Defined in:
- lib/ferrum/errors.rb
Instance Method Summary collapse
-
#initialize(format) ⇒ InvalidScreenshotFormatError
constructor
A new instance of InvalidScreenshotFormatError.
Constructor Details
#initialize(format) ⇒ InvalidScreenshotFormatError
Returns a new instance of InvalidScreenshotFormatError.
82 83 84 85 |
# File 'lib/ferrum/errors.rb', line 82 def initialize(format) valid_formats = Page::Screenshot::SUPPORTED_SCREENSHOT_FORMAT.join(" | ") super("Invalid value #{format} for option `:format` (#{valid_formats})") end |