mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
282 B
12 lines
282 B
15 years ago
|
process.on('uncaughtException', function (err) {
|
||
|
console.log('Caught exception: ' + err);
|
||
|
});
|
||
|
|
||
|
setTimeout(function () {
|
||
|
console.log('This will still run.');
|
||
|
}, 500);
|
||
|
|
||
|
// Intentionally cause an exception, but don't catch it.
|
||
|
nonexistentFunc();
|
||
|
console.log('This will not run.');
|