Exception: Venetian::Executable::ExecutableNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/venetian/executable.rb

Overview

# Executable Not Found Error

Raised when the Playwright executable cannot be found for the current platform.

Instance Method Summary collapse

Constructor Details

#initialize(reason, **context) ⇒ ExecutableNotFoundError

:nodoc:



43
44
45
46
47
48
49
# File 'lib/venetian/executable.rb', line 43

def initialize(reason, **context) # :nodoc:
  super(case reason
        in :directory_missing then directory_missing_message(context[:exe_dir])
        in :executable_missing then executable_missing_message(context[:exe_dir])
        else unsupported_platform_message(context[:platform], context[:exe_dir])
        end)
end