php-google-spreadsheet-client icon indicating copy to clipboard operation
php-google-spreadsheet-client copied to clipboard

using try+catch to prevent Fatal errors

Open nekromoff opened this issue 8 years ago • 0 comments

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

nekromoff avatar Sep 14 '17 10:09 nekromoff