so when i re-throw the error after writing the res...
# suitescript
b
so when i re-throw the error after writing the response, my response is lost and SS writes the exception to the response in its standard way. i wanted to rethrow it so i could use the in-built functionality but it seems you're saying that's not possible without the exception being displayed as the inbuilt functionality does.