@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | /** |
| 28 | 28 | * Get crew of TV Episode |
| 29 | - * @return \Generator|Results\Crew |
|
| 29 | + * @return \Generator |
|
| 30 | 30 | */ |
| 31 | 31 | public function getCrew() : \Generator |
| 32 | 32 | { |
@@ -65,7 +65,8 @@ |
||
| 65 | 65 | $this->tmdb->postRequest('account/'.$this->account_id.'/favorite', $this->options, $params); |
| 66 | 66 | |
| 67 | 67 | return $this; |
| 68 | - } catch (TmdbException $e) { |
|
| 68 | + } |
|
| 69 | + catch (TmdbException $e) { |
|
| 69 | 70 | throw $e; |
| 70 | 71 | } |
| 71 | 72 | } |
@@ -77,7 +77,8 @@ |
||
| 77 | 77 | $this->tmdb->postRequest('account/'.$this->account_id.'/watchlist', $this->options, $params); |
| 78 | 78 | |
| 79 | 79 | return $this; |
| 80 | - } catch (TmdbException $e) { |
|
| 80 | + } |
|
| 81 | + catch (TmdbException $e) { |
|
| 81 | 82 | throw $e; |
| 82 | 83 | } |
| 83 | 84 | } |
@@ -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); |
@@ -42,7 +42,8 @@ |
||
| 42 | 42 | $this->logger = $tmdb->getLogger(); |
| 43 | 43 | $this->params = $this->tmdb->checkOptions($options); |
| 44 | 44 | $this->data = $this->tmdb->getRequest('person/' . $people_id.'/tv_credits', $this->params); |
| 45 | - } catch (TmdbException $ex) { |
|
| 45 | + } |
|
| 46 | + catch (TmdbException $ex) { |
|
| 46 | 47 | throw $ex; |
| 47 | 48 | } |
| 48 | 49 | } |
@@ -42,7 +42,8 @@ |
||
| 42 | 42 | $this->logger = $tmdb->getLogger(); |
| 43 | 43 | $this->params = $this->tmdb->checkOptions($options); |
| 44 | 44 | $this->data = $this->tmdb->getRequest('person/' . $people_id.'/movie_credits', $this->params); |
| 45 | - } catch (TmdbException $ex) { |
|
| 45 | + } |
|
| 46 | + catch (TmdbException $ex) { |
|
| 46 | 47 | throw $ex; |
| 47 | 48 | } |
| 48 | 49 | } |
@@ -73,7 +73,8 @@ |
||
| 73 | 73 | $this->conf = $this->tmdb->getConfiguration(); |
| 74 | 74 | $this->params = $this->tmdb->checkOptions($options); |
| 75 | 75 | $this->data = $this->tmdb->getRequest($item_name . '/' . (int) $item_id, $this->params); |
| 76 | - } catch (TmdbException $ex) { |
|
| 76 | + } |
|
| 77 | + catch (TmdbException $ex) { |
|
| 77 | 78 | throw $ex; |
| 78 | 79 | } |
| 79 | 80 | } |