Version 1
[yaffs-website] / vendor / jcalderonzumba / gastonjs / src / Exception / DeadClient.php
diff --git a/vendor/jcalderonzumba/gastonjs/src/Exception/DeadClient.php b/vendor/jcalderonzumba/gastonjs/src/Exception/DeadClient.php
new file mode 100644 (file)
index 0000000..f4af193
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+namespace Zumba\GastonJS\Exception;
+
+
+/**
+ * Class DeadClient
+ * @package Zumba\GastonJS\Exception
+ */
+class DeadClient extends \Exception {
+
+  /**
+   * @param string     $message
+   * @param int        $code
+   * @param \Exception $previous
+   */
+  public function __construct($message = "", $code = 0, \Exception $previous = null) {
+    $errorMsg = $message."\nPhantomjs browser server is not taking connections, most probably it has crashed\n";
+    parent::__construct($errorMsg, $code, $previous);
+  }
+}