title: Catch "Warning: mysqli::mysqli() [mysqli.mysqli]: MySQL server has gone away" to write error nicely
body: <p>Where and how to write a code that will check if error showing "MySQL server has gone away" appears and print some error diferently and more nicely.</p>
  
  <pre><code>Warning: mysqli::mysqli() [mysqli.mysqli]: MySQL server has gone away
  </code></pre>