ChuckNorrisException
This will throw an un-catchable error and make your code fail in style!
Installation via npm
$ npm install ChuckNorrisException
Usage
var ChuckNorrisException = require('ChuckNorrisException');
var imFeelingLucky = true;
try {
if (imFeelingLucky) throw new ChuckNorrisException();
} catch (e) {
// FAIL: You cannot catch a ChuckNorrisException
}
Wait.. wha....?
Attempting to throw a ChuckNorrisException will result in failure and will
terminate your program.
Why? Because, you don't throw Chuck Norris.. Chuck Norris throws YOU!
These handy errors will be shown if such foolishness is atempted
- You cannot throw Chuck Norris... Chuck Norris, throws YOU!
- Chuck Norris wrote Hello World once... it was called Unix
- Chuck Norris will asynchronously KICK YOUR ASS
What we've learned here today
You cannot catch a ChuckNorrisExecption