0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/message/throw_custom_error.js

10 lines
216 B
JavaScript
Raw Normal View History

var common = require('../common');
var assert = require('assert');
console.error('before');
// custom error throwing
2012-02-19 00:01:35 +01:00
throw ({ name: 'MyCustomError', message: 'This is a custom message' });
console.error('after');