Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.05 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.05 KB

Exceptional for node.js

Exceptional helps you track errors in your node.js apps!

This CommonJS module posts exception data to Exceptional http://getexceptional.com. Data about the environment and backtrace of the exception are sent.

To use Exceptional for node.js you must have an account at http://getexceptional.com.

Installation

Include the exceptional.js file in your application, and set your Exceptional API-KEY

 var Exceptional = require(./'exceptional');

 Exceptional.API_KEY = **YOUR-API-KEY**
 

Usage

There a are multiple ways you can use exceptional with your node.js app.

  1. The process.uncaughtException event can be used to catch exceptions that bubble all the way up to the event loop.
process.addListener('uncaughtException', function(err) {
  Exceptional.handle(err);
});
  1. You can sent exception data to exceptional from inside your own try/catch blocks
try {

  // Your Code

} catch(error) {
  // Your own error processing
  Exceptional.handle(error);
}

Copyright © 2008, 2010 Contrast.