Version 1
[yaffs-website] / vendor / jcalderonzumba / gastonjs / src / Exception / TimeoutError.php
diff --git a/vendor/jcalderonzumba/gastonjs/src/Exception/TimeoutError.php b/vendor/jcalderonzumba/gastonjs/src/Exception/TimeoutError.php
new file mode 100644 (file)
index 0000000..6366ffa
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+
+namespace Zumba\GastonJS\Exception;
+
+/**
+ * Class TimeoutError
+ * @package Zumba\GastonJS\Exception
+ */
+class TimeoutError extends \Exception {
+
+  /**
+   * @param string $message
+   */
+  public function __construct($message) {
+    $errorMessage = "Timed out waiting for response to {$message}. It's possible that this happened
+            because something took a very long time(for example a page load was slow).
+            If so, setting the Poltergeist :timeout option to a higher value will help
+            (see the docs for details). If increasing the timeout does not help, this is
+            probably a bug in Poltergeist - please report it to the issue tracker.";
+    parent::__construct($errorMessage);
+  }
+
+}