title: CakePhp: Don't display ONE warning
body: <p>I've one place in my code where I free some ingres resources, and I've no way to know if the parameter is valid ingres resource.</p>
  
  <p>So I would like to do it anyway(except if empty() ). </p>
  
  <p>I'm try-catching it, but when this isnt a valid resource, I got the exception catched by cakePhp and then it display the debug message, and it mess with the encoding the whole site.</p>
  
  <p>I know that I can't deactivate the debugging for the whole site, but the website is under development and it's not what I want.</p>
  
  <p>So, how to manage cakePhp to DON'T display this warning for this exception on this line(I also don't want to ignore all errors of this type).</p>
  
  <p>Is it possible?</p>
  
  <p>Thank you very much</p>