^ yes if you re-throw an `N/error.Error` instance ...
# suitescript
e
^ yes if you re-throw an
N/error.Error
instance from
CommonFunctions
, it should have a stacktrace attached. e.g.
Copy code
try {
  // stuff
} catch (e) {
  throw error.create({name: "MY_CUSTOM_ERROR", message: "Oh no!"});
}
1000 1