Added 1 try/catch

I've added 1 try.catch to show you how it works, you could alse found others informations at http://phptrycatch.blogspot.fr/ or http://stackoverflow.com/questions/15379617/user-friendly-php-try-catch