Skip to content

Commit 6f88495

Browse files
committed
Initialised first version
1 parent fbddf8e commit 6f88495

File tree

3 files changed

+472
-37
lines changed

3 files changed

+472
-37
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.1.3",
15-
"guzzlehttp/guzzle": "^6.3"
14+
"php": "^7",
15+
"guzzlehttp/guzzle": "^7"
1616
},
1717
"autoload": {
1818
"psr-4": {

src/Exceptions/WeatherException.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,15 @@
55

66
class WeatherException extends \Exception
77
{
8+
private $e;
9+
10+
public function __construct($e){
11+
$this->e = $e;
12+
}
13+
14+
public function render()
15+
{
16+
return $this->e->getResponse() == null?'Nothing found':$this->e->getResponse()->getBody(true);
17+
}
818

919
}

0 commit comments

Comments
 (0)