laipower/wp-content/upgrade-temp-backup/plugins/w3-total-cache/lib/NetDNA/W3tcWpHttpException.php
2023-10-22 22:21:48 +00:00

21 lines
477 B
PHP

<?php
class W3tcWpHttpException extends Exception {
private $curl_headers;
public function __construct($message, $code = 0, Exception $previous = null, $headers = null) {
if (version_compare(PHP_VERSION, '5.3', '>='))
parent::__construct($message, (int)$code, $previous);
else
parent::__construct($message, (int)$code);
$this->curl_headers = $headers;
}
public function getHeaders() {
return $this->curl_headers;
}
}