Home:ALL Converter>How to execute code after an exception has been caught in nodeJS?

How to execute code after an exception has been caught in nodeJS?

Ask Time:2018-06-08T22:12:57         Author:matheusopedro

Json Formatter

I'm running a function in AWS Lambda in which I have a try catch block implemented.

try {
  // do something
} catch(err) {
  myData.error = err;
}

//continue to execute

How can I avoid lambda from aborting execution?

Author:matheusopedro,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/50762582/how-to-execute-code-after-an-exception-has-been-caught-in-nodejs
yy