title: PHP try catch, if exception > stop
body: <p>i'm new with the <code>try/Catch</code> option in PHP, so i created this:</p>
  
  <pre><code>try {
      $dropbox-&gt;Delete($_POST['truncNaam']);
  } catch (Exception $e) {
      echo '&lt;div class="error"&gt;Exception: '. $e-&gt;getMessage() .'&lt;/div&gt;';
  }
  
  echo "Success";
  </code></pre>
  
  <p>When an error occurres now, i will see the error but also i will see " SUCCESS ".
  I don't want that, i want to see the error when it occurress OR i want to show the SUCCESS if there was no exception.</p>
  
  <p>I just can't figure out how to realize that. Can someone explain it to me?</p>