September 27, 2017

Exception Handling for Newbies

Near the tail end of this week’s video, I briefly mentioned the concept of “Exception Handling”, which is an incredibly important topic for SuiteScript developers to understand. Knowing how to appropriately throw and manage Exceptions is critical to the stability and ease of troubleshooting your SuiteScript will inevitably need.

JavaScript (and thus SuiteScript) has an Exception system that works just like many other popular languages. We use exceptions to indicate that something has gone desperately wrong in our script, and action is needed to either recover from the error or exit altogether.

If you aren’t familiar with Exceptions at all, or need to learn how they work in JavaScript, this MDN article is a great starting point.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Related posts

March 3, 2021

Does the physical location of a competent employee change the amount of value they can deliver for your organization? If it does, I’d be keen to hear your story. If it does not, why ...

Read More

March 2, 2021

Today a friend and former colleague of mine – who happens to now be in a development leadership role for a NetSuite partner – was lamenting the extreme difficulty of finding and hiring NetSuite ...

Read More

March 1, 2021

Software is never finished; clients are always changing and re-prioritizing. NetSuite is ever a moving target – always updating and evolving. Market forces are always shifting and shoving, forcing new demands on your business. ...

Read More