title: Uncaught exception 'Exception' with message '0' in Stack trace: #0. PHP Insert based off API response
body: <p>im using RottenTomatoes Api to gain film information. I have a list of 250 films im grabbing information on however i get to a certain point and i get this error. It seems to happen randomly. I'm taking the api results and putting them in my own database. Would there be a reason for such an error?</p>
  
  <pre><code>Fatal error:  Uncaught exception 'Exception' with message '0' in /home/ignitet1/public_html/CheckFilm/RottenTomatoes.php:340
  Stack trace:
  #0 /home/ignitet1/public_html/CheckFilm/RottenTomatoes.php(156): RottenTomatoes-&amp;gt;getResource('http://api.rott...')
  #1 ****/loadFullData.php(37): RottenTomatoes-&amp;gt;getMovieInfo('771269025')
  #2 {main}
    thrown in ****RottenTomatoes.php&lt;/b&gt; on line &lt;b&gt;340&lt;/b&gt;&lt;br /&gt;
  </code></pre>
  
  <p>on line 340 this is the code. rottentomatoes.php is a php library used to parse the response's from the api.</p>
  
  <pre><code>if (isset($decodedResponse['error']))
              throw new Exception('API Error: ' + $decodedResponse['error']);
  
          return $decodedResponse;
  </code></pre>
  
  <p>Apologies for the poor explanation i'm having trouble finding the code that is causing the issue.</p>