Class: Bucky::Core::Exception::WebdriverException

Inherits:
BuckyException show all
Defined in:
lib/bucky/core/exception/bucky_exception.rb

Overview

Error handling on webdriver

Constant Summary

Constants included from Utils::BuckyLogger

Utils::BuckyLogger::LogFileDir

Class Method Summary collapse

Methods included from Utils::BuckyLogger

write

Class Method Details

.handle(err, proc_name = nil) ⇒ Object

Raises:

  • (err.class)


34
35
36
37
38
39
# File 'lib/bucky/core/exception/bucky_exception.rb', line 34

def handle(err, proc_name = nil)
  super(err)
  raise err if proc_name.nil?

  raise(err.class, "#{err.message}\nFail in proc: ##{proc_name}")
end