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

  • @TheDervMan
    @TheDervMan2 жыл бұрын

    I wish I knew about this a year ago!! Thanks for sharing this top tip :-)

  • @saperis

    @saperis

    2 жыл бұрын

    You're welcome! 😀

  • @hasfiz
    @hasfiz2 жыл бұрын

    Precise and simple! Thanks a lot👍

  • @saperis

    @saperis

    2 жыл бұрын

    Thank you for watching and commenting. 😀

  • @nsikumoh
    @nsikumoh2 жыл бұрын

    Thanks a lot, Chanel. This was massively helpful!

  • @saperis

    @saperis

    2 жыл бұрын

    Glad it was helpful! 😀

  • @NariMohan
    @NariMohan Жыл бұрын

    Exactly what i was looking for. Thank you for the simple explanation

  • @saperis

    @saperis

    Жыл бұрын

    You are welcome! 😀

  • @goodmorning2570
    @goodmorning25702 жыл бұрын

    Great video, thanks a lot! Backticks can be a little naughty at times haha

  • @saperis

    @saperis

    2 жыл бұрын

    Oh yes! Thanks for watching. 😀

  • @TrucTran33
    @TrucTran332 жыл бұрын

    Thanks for the video. How do you add line number when the error occurs to the alert? "error.lineNumber" does not work.

  • @saperis

    @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

  • @DemetriusPalacios
    @DemetriusPalacios Жыл бұрын

    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

    @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/

  • @rimaldz8232
    @rimaldz8232 Жыл бұрын

    help me plz