f4af193064afb73f4ea5761e9818e56bf62cee21
[yaffs-website] / vendor / jcalderonzumba / gastonjs / src / Exception / DeadClient.php
1 <?php
2
3 namespace Zumba\GastonJS\Exception;
4
5
6 /**
7  * Class DeadClient
8  * @package Zumba\GastonJS\Exception
9  */
10 class DeadClient extends \Exception {
11
12   /**
13    * @param string     $message
14    * @param int        $code
15    * @param \Exception $previous
16    */
17   public function __construct($message = "", $code = 0, \Exception $previous = null) {
18     $errorMsg = $message."\nPhantomjs browser server is not taking connections, most probably it has crashed\n";
19     parent::__construct($errorMsg, $code, $previous);
20   }
21 }