Patched to Drupal 8.4.8 level. See https://www.drupal.org/sa-core-2018-004 and patch...
[yaffs-website] / vendor / jcalderonzumba / gastonjs / src / Exception / TimeoutError.php
1 <?php
2
3 namespace Zumba\GastonJS\Exception;
4
5 /**
6  * Class TimeoutError
7  * @package Zumba\GastonJS\Exception
8  */
9 class TimeoutError extends \Exception {
10
11   /**
12    * @param string $message
13    */
14   public function __construct($message) {
15     $errorMessage = "Timed out waiting for response to {$message}. It's possible that this happened
16             because something took a very long time(for example a page load was slow).
17             If so, setting the Poltergeist :timeout option to a higher value will help
18             (see the docs for details). If increasing the timeout does not help, this is
19             probably a bug in Poltergeist - please report it to the issue tracker.";
20     parent::__construct($errorMessage);
21   }
22
23 }