Exception: Puppeteer::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Puppeteer::Error
- Defined in:
- lib/puppeteer/errors.rb
Overview
The base class for all Puppeteer-specific errors
Direct Known Subclasses
Browser::CreatePageError, Browser::MissingBrowserContextError, Browser::MissingTargetError, BrowserRunner::LaunchError, CDPSession::Error, ChromeTargetManager::SessionNotCreatedError, Connection::ProtocolError, Puppeteer::ElementHandle::DragInterceptionNotEnabledError, Puppeteer::ElementHandle::ElementNotClickableError, Puppeteer::ElementHandle::ElementNotFoundError, Puppeteer::ElementHandle::ElementNotVisibleError, Puppeteer::ElementHandle::ScrollIntoViewError, Puppeteer::ExecutionContext::EvaluationError, FrameManager::FrameNotFoundError, FrameManager::NavigationError, HTTPRequest::AlreadyHandledError, HTTPRequest::InterceptionNotEnabledError, HTTPResponse::Redirected, IsolaatedWorld::DetachedError, IsolaatedWorld::ElementNotFoundError, LifecycleWatcher::FrameDetachedError, LifecycleWatcher::TerminatedError, Page::PageError, Page::PrintToPdfIsNotImplementedError, Page::TargetCrashedError, Target::InitializeFailure, TimeoutError, TouchError, WaitTask::TerminatedError, WebSocket::TransportError, WebSocketTransport::ClosedError
Instance Attribute Summary collapse
Instance Attribute Details
#cause ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/puppeteer/errors.rb', line 7 def cause return nil if @cause.equal?(self) stack = Thread.current[:puppeteer_cause_stack] ||= [] return nil if stack.include?(object_id) stack << object_id begin @cause || super ensure stack.pop Thread.current[:puppeteer_cause_stack] = nil if stack.empty? end end |