This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Require our core node modules. | |
var util = require( "util" ); | |
// Export the constructor function. | |
exports.AppError = AppError; | |
// Export the factory function for the custom error object. The factory function lets | |
// the calling context create new AppError instances without calling the [new] keyword. | |
exports.createAppError = createAppError; |