JimYuan's Blog

Sharing the things I learned

0%

ErrorHandlingInGH

Recently, I wanna catch up the videos from Jose Lois. Hope this way I can rememeber the thing I’ve learned a bit longer.
Here’s the video:
https://www.youtube.com/watch?v=sJT_m4AxR0o

Things I’ve learned from the video is:

  • Sanity, can help construct the upper bound/ lower bound
  • List_Item“ component has wrap boolean toggle to help avoiding the boundary issue
  • Whenever error happened, we could try use
1
Component.AddRuntimeMessage(GH_RuntimeMessageLevel.Warning, "Index out of bounds");

This line make the script component yellow, and print the warning message.