php-google-spreadsheet-client
php-google-spreadsheet-client copied to clipboard
using try+catch to prevent Fatal errors
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.
- bubble Fatal errors up and halt
- prevent Fatal errors and continue
- contain Fatal errors and pass them to callback