UNPKG

node-geocoder

Version:

Node Geocoder, node geocoding library, supports google maps, mapquest, open street map, tom tom, promise

20 lines (13 loc) 377 B
var util = require('util'); var HttpError = function(message, options) { Error.call(this); Error.captureStackTrace(this, this.constructor); this.name = 'HttpError'; this.message = message; options = options || {}; for(var k in options) { this[k] = this[k] || options[k]; } }; util.inherits(HttpError, Error); module.exports = HttpError;