title: Wordpress Plugin Development – Prevent Fatal Error
body: <p>Is there an option for preventing any fatal error which would cause the
  website to go down when developing wordpress plugins?</p>
  <p>For example, let's say there's a semicolon missing on a particular line.
  Under normal circumstances, the website would be down until the plugin is either removed
  or the line is fixed.</p>
  <p>I'd like to find a way of catching every exception in the application without risking that the site may be going down, without having to put try/catch blogs around all of the code (which would be a solution, I guess).</p>
  <p>For example, when calling the following code from a wp hook:</p>
  <pre><code>try {
      $var_does_not_exist-&gt;do_something();
  }
  catch (Exception $e){
      
  }
  </code></pre>
  <p>The try/catch block doesn't seem to help in preventing the fatal error. Is there any way to fix that?</p>
  <p>Any help would be appreciated.</p>
  <p>Thanks!</p>