in reply to Re^7: Error Handling in Selenium
in thread Error Handling in Selenium

What about Corions suggestion of https://metacpan.org/pod/Selenium::Remote::Driver#error_handler?