芝麻web文件管理V1.00
编辑当前文件:/home/dcqnetm/EGS/wp-includesGEm/html-api/colors/Exception.tar
Http.php 0000644 00000003006 15130141700 0006163 0 ustar 00 reason = $reason; } $message = sprintf('%d %s', $this->code, $this->reason); parent::__construct($message, 'httpresponse', $data, $this->code); } /** * Get the status message. * * @return string */ public function getReason() { return $this->reason; } /** * Get the correct exception class for a given error code * * @param int|bool $code HTTP status code, or false if unavailable * @return string Exception class name to use */ public static function get_class($code) { if (!$code) { return StatusUnknown::class; } $class = sprintf('\WpOrg\Requests\Exception\Http\Status%d', $code); if (class_exists($class)) { return $class; } return StatusUnknown::class; } } Http/Status500.php 0000644 00000000747 15130141700 0007704 0 ustar 00 code = (int) $data->status_code; } parent::__construct($reason, $data); } } Http/Status401.php 0000644 00000000714 15130141700 0007676 0 ustar 00 type = $type; } if ($code !== null) { $this->code = (int) $code; } if ($message !== null) { $this->reason = $message; } $message = sprintf('%d %s', $this->code, $this->reason); parent::__construct($message, $this->type, $data, $this->code); } /** * Get the error message. * * @return string */ public function getReason() { return $this->reason; } } ArgumentCount.php 0000644 00000002664 15130141700 0010050 0 ustar 00