The try-catch example given for the raven php client was wrong and caused errors. Updated to resolve errors.