var Exceptional = require(./'exceptional');
Exceptional.API_KEY = **YOUR-API-KEY**
To catch all uncaught exceptions
process.addListener('uncaughtException', function(err) {
Exceptional.handle(err);
});
To manually handle errors
try {
// Your Code
} catch(error) {
// Your own error processing
Exceptional.handle(error);
}
You will find your API_KEY key in the apps settings screen in Exceptional.