Intentionally Throwing an Error in RunJS for Debugging
In this step-by-step guide, we'll walk you through the process of creating a RunJS query that intentionally throws an error for debugging purposes.
Creating the Error-Throwing RunJS Query
-
Create a new RunJS query by clicking the
+ Addbutton on the query panel. -
Paste the following code into the RunJS query editor. This code utilizes the
ReferenceErrorconstructor to intentionally generate an error.throw new ReferenceError('This is a reference error.');