How to use Try and Catch to deal with errors in Google Apps Script
In this video you will see how you can use a try/catch block to deal with errors in Google Apps Script.
#TryCatchGoogleAppsScript #GoogleAppsScript #GoogleWorkspace #ChanelGreco #saperis
-----
👉🏽 If you're interested in leveling up your Google Apps Script skill have a look at our online course: https//courses.saperis.io
saperis - Be more productive by mastering Google Workspace!
Sign up to our KZread channel for more Google Workspace, Gmail, Google Docs, Google Drive, etc. videos: / saperis
saperis website: saperis.io/
Пікірлер: 15
I wish I knew about this a year ago!! Thanks for sharing this top tip :-)
@saperis
2 жыл бұрын
You're welcome! 😀
Precise and simple! Thanks a lot👍
@saperis
2 жыл бұрын
Thank you for watching and commenting. 😀
Thanks a lot, Chanel. This was massively helpful!
@saperis
2 жыл бұрын
Glad it was helpful! 😀
Exactly what i was looking for. Thank you for the simple explanation
@saperis
Жыл бұрын
You are welcome! 😀
Great video, thanks a lot! Backticks can be a little naughty at times haha
@saperis
2 жыл бұрын
Oh yes! Thanks for watching. 😀
Thanks for the video. How do you add line number when the error occurs to the alert? "error.lineNumber" does not work.
@saperis
2 жыл бұрын
The error object has only two properties: name and message. There is now property for logging out the line number. Check this explanation: www.w3schools.com/js/js_errors.asp
Hello, I am a huge fan of your content. You're amazing. I was wondering if you offer a service to review app script code? I am trying to connect my sheets to a mysql database, I get an error Code:9
@saperis
Жыл бұрын
Thanks for the feedback. I do not offer such services. Maybe check to see if you can hife a freelancer from this list: workspacedevs.com/
help me plz