mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2024-04-21 12:31:40 +00:00
30 lines
463 B
PHP
30 lines
463 B
PHP
<?php
|
|
namespace Qiniu\Http;
|
|
|
|
final class Error
|
|
{
|
|
private $url;
|
|
private $response;
|
|
|
|
public function __construct($url, $response)
|
|
{
|
|
$this->url = $url;
|
|
$this->response = $response;
|
|
}
|
|
|
|
public function code()
|
|
{
|
|
return $this->response->statusCode;
|
|
}
|
|
|
|
public function getResponse()
|
|
{
|
|
return $this->response;
|
|
}
|
|
|
|
public function message()
|
|
{
|
|
return $this->response->error;
|
|
}
|
|
}
|