Skip to content

Commit 005f5c7

Browse files
committed
Keep HTTPException as a standard exception.
1 parent 546ea1c commit 005f5c7

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

src/Kobas/Client.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ protected function call($http_method, $route, array $params = array(), array $he
140140

141141
$url .= $route;
142142

143-
// $url .= trim($route, '/');
144-
145143
$this->request
146144
->init()
147145
->setOption(CURLOPT_CUSTOMREQUEST, strtoupper($http_method))

src/Kobas/Exception/HttpException.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,8 @@ class HttpException extends \Exception
77
{
88
protected $data;
99

10-
public function __construct($http_code, $data, $message = '')
10+
public function __construct($http_code, $message = '')
1111
{
1212
parent::__construct($message, $http_code);
13-
$this->setData($data);
14-
}
15-
16-
private function setData($data)
17-
{
18-
$this->data = $data;
19-
}
20-
21-
public function getData()
22-
{
23-
return $this->data;
2413
}
2514
}

0 commit comments

Comments
 (0)