public function __construct($timeout, $json)
 {
     $this->timeout = $timeout;
     $this->json = $json;
     parent::__construct("Timeout" . " : " . json_encode($this->json()));
 }
 public function __construct($error, $json)
 {
     $this->error = $error;
     $this->json = $json;
     parent::__construct(json_encode($this->error()) . " : " . json_encode($this->json()));
 }