you can catch netsuite's error and return it ``` t...
# suitescript
j
you can catch netsuite's error and return it
Copy code
try {
    suitescriptThatThrows();
    return {}; // no error
} catch(ex) {
    return ex; // netsuite error
}