asimlqt / php-google-spreadsheet-client

A PHP library for accessing and manipulating Google Spreadsheets
Other
544 stars 152 forks source link

using try+catch to prevent Fatal errors #179

Open nekromoff opened 7 years ago

nekromoff commented 7 years ago

This client is great!

However, since it communicates directly with API it must correct for the Fatal errors, since it otherwise crashes and ends the whole process.

Using try and catch blocks should be therefore mandatory in the code with a possible config option on how to behave.

  1. bubble Fatal errors up and halt
  2. prevent Fatal errors and continue
  3. contain Fatal errors and pass them to callback