@@ -156,7 +156,8 @@ discard block |
||
| 156 | 156 | $this->tmdb->postRequest($action, $this->options, $params); |
| 157 | 157 | |
| 158 | 158 | return $this; |
| 159 | - } catch (TmdbException $e) { |
|
| 159 | + } |
|
| 160 | + catch (TmdbException $e) { |
|
| 160 | 161 | throw $e; |
| 161 | 162 | } |
| 162 | 163 | } |
@@ -172,7 +173,8 @@ discard block |
||
| 172 | 173 | $this->tmdb->deleteRequest($action, $this->options); |
| 173 | 174 | |
| 174 | 175 | return $this; |
| 175 | - } catch (TmdbException $e) { |
|
| 176 | + } |
|
| 177 | + catch (TmdbException $e) { |
|
| 176 | 178 | throw $e; |
| 177 | 179 | } |
| 178 | 180 | } |
@@ -53,7 +53,8 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | try { |
| 55 | 55 | return $this->getList('genre/movie/list', $options); |
| 56 | - } catch (TmdbException $ex) { |
|
| 56 | + } |
|
| 57 | + catch (TmdbException $ex) { |
|
| 57 | 58 | throw $ex; |
| 58 | 59 | } |
| 59 | 60 | } |
@@ -68,7 +69,8 @@ discard block |
||
| 68 | 69 | { |
| 69 | 70 | try { |
| 70 | 71 | return $this->getList('genre/tv/list', $options); |
| 71 | - } catch (TmdbException $ex) { |
|
| 72 | + } |
|
| 73 | + catch (TmdbException $ex) { |
|
| 72 | 74 | throw $ex; |
| 73 | 75 | } |
| 74 | 76 | } |
@@ -92,7 +94,8 @@ discard block |
||
| 92 | 94 | } |
| 93 | 95 | |
| 94 | 96 | return $this->genreItemGenerator($genres); |
| 95 | - } catch (TmdbException $ex) { |
|
| 97 | + } |
|
| 98 | + catch (TmdbException $ex) { |
|
| 96 | 99 | throw $ex; |
| 97 | 100 | } |
| 98 | 101 | } |
@@ -64,7 +64,8 @@ |
||
| 64 | 64 | $results[] = $result; |
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | - } catch (TmdbException $ex) { |
|
| 67 | + } |
|
| 68 | + catch (TmdbException $ex) { |
|
| 68 | 69 | throw $ex; |
| 69 | 70 | } |
| 70 | 71 | return $this->genreItemGenerator($results); |
@@ -79,7 +79,8 @@ discard block |
||
| 79 | 79 | $this->total_results = (int) $response->total_results; |
| 80 | 80 | |
| 81 | 81 | return $this->searchItemGenerator($response->results, $result_class); |
| 82 | - } catch (TmdbException $ex) { |
|
| 82 | + } |
|
| 83 | + catch (TmdbException $ex) { |
|
| 83 | 84 | throw $ex; |
| 84 | 85 | } |
| 85 | 86 | } |
@@ -96,7 +97,8 @@ discard block |
||
| 96 | 97 | try { |
| 97 | 98 | $this->logger->debug('Starting search movie', array('query' => $query, 'options' => $options)); |
| 98 | 99 | return $this->searchItem('movie', $query, $options, Results\Movie::class); |
| 99 | - } catch (TmdbException $ex) { |
|
| 100 | + } |
|
| 101 | + catch (TmdbException $ex) { |
|
| 100 | 102 | throw $ex; |
| 101 | 103 | } |
| 102 | 104 | } |
@@ -113,7 +115,8 @@ discard block |
||
| 113 | 115 | try { |
| 114 | 116 | $this->logger->debug('Starting search tv show', array('query' => $query, 'options' => $options)); |
| 115 | 117 | return $this->searchItem('tv', $query, $options, Results\TVShow::class); |
| 116 | - } catch (TmdbException $ex) { |
|
| 118 | + } |
|
| 119 | + catch (TmdbException $ex) { |
|
| 117 | 120 | throw $ex; |
| 118 | 121 | } |
| 119 | 122 | } |
@@ -130,7 +133,8 @@ discard block |
||
| 130 | 133 | try { |
| 131 | 134 | $this->logger->debug('Starting search collection', array('query' => $query, 'options' => $options)); |
| 132 | 135 | return $this->searchItem('collection', $query, $options, Results\Collection::class); |
| 133 | - } catch (TmdbException $ex) { |
|
| 136 | + } |
|
| 137 | + catch (TmdbException $ex) { |
|
| 134 | 138 | throw $ex; |
| 135 | 139 | } |
| 136 | 140 | } |
@@ -147,7 +151,8 @@ discard block |
||
| 147 | 151 | try { |
| 148 | 152 | $this->logger->debug('Starting search people', array('query' => $query, 'options' => $options)); |
| 149 | 153 | return $this->searchItem('person', $query, $options, Results\People::class); |
| 150 | - } catch (TmdbException $ex) { |
|
| 154 | + } |
|
| 155 | + catch (TmdbException $ex) { |
|
| 151 | 156 | throw $ex; |
| 152 | 157 | } |
| 153 | 158 | } |
@@ -164,7 +169,8 @@ discard block |
||
| 164 | 169 | try { |
| 165 | 170 | $this->logger->debug('Starting search company', array('query' => $query, 'options' => $options)); |
| 166 | 171 | return $this->searchItem('company', $query, $options, Results\Company::class); |
| 167 | - } catch (TmdbException $ex) { |
|
| 172 | + } |
|
| 173 | + catch (TmdbException $ex) { |
|
| 168 | 174 | throw $ex; |
| 169 | 175 | } |
| 170 | 176 | } |
@@ -61,7 +61,8 @@ |
||
| 61 | 61 | ]); |
| 62 | 62 | |
| 63 | 63 | return $this->guzzleClient->request($method, $url, $params); |
| 64 | - } catch (RequestException $e) { |
|
| 64 | + } |
|
| 65 | + catch (RequestException $e) { |
|
| 65 | 66 | if (is_null($e->getResponse())) { |
| 66 | 67 | throw new HttpErrorException; |
| 67 | 68 | } |
@@ -35,7 +35,8 @@ |
||
| 35 | 35 | $this->cast_class = PeopleMovieCast::class; |
| 36 | 36 | |
| 37 | 37 | parent::__construct($tmdb, 'movie', $people_id, $options); |
| 38 | - } catch (TmdbException $ex) { |
|
| 38 | + } |
|
| 39 | + catch (TmdbException $ex) { |
|
| 39 | 40 | throw $ex; |
| 40 | 41 | } |
| 41 | 42 | } |
@@ -35,7 +35,8 @@ |
||
| 35 | 35 | $this->cast_class = PeopleTVShowCast::class; |
| 36 | 36 | |
| 37 | 37 | parent::__construct($tmdb, 'tv', $people_id, $options); |
| 38 | - } catch (TmdbException $ex) { |
|
| 38 | + } |
|
| 39 | + catch (TmdbException $ex) { |
|
| 39 | 40 | throw $ex; |
| 40 | 41 | } |
| 41 | 42 | } |
@@ -95,7 +95,8 @@ |
||
| 95 | 95 | $this->tmdb->postRequest('account/'.$this->account_id.'/'.$list_type, $this->options, $params); |
| 96 | 96 | |
| 97 | 97 | return $this; |
| 98 | - } catch (TmdbException $e) { |
|
| 98 | + } |
|
| 99 | + catch (TmdbException $e) { |
|
| 99 | 100 | throw $e; |
| 100 | 101 | } |
| 101 | 102 | } |
@@ -74,7 +74,8 @@ |
||
| 74 | 74 | $this->tmdb->checkOptionLanguage($options, $this->params); |
| 75 | 75 | |
| 76 | 76 | $this->data = $this->tmdb->getRequest($item_name . '/' . (int) $item_id, $this->params); |
| 77 | - } catch (TmdbException $ex) { |
|
| 77 | + } |
|
| 78 | + catch (TmdbException $ex) { |
|
| 78 | 79 | throw $ex; |
| 79 | 80 | } |
| 80 | 81 | } |