ParseError thrown

syntax error, unexpected 'try' (T_TRY)