rest-facade
Advanced tools
Comparing version 1.7.0 to 1.7.1
{ | ||
"name": "rest-facade", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "Simple abstraction for consuming REST API endpoints", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -5,6 +5,7 @@ var util = require('util'); | ||
var APIError = function(name, message, status){ | ||
this.name = name || ''; | ||
this.message = message || ''; | ||
this.statusCode = status; | ||
Error.captureStackTrace(this, this.constructor); | ||
this.name = name; | ||
this.message = message; | ||
this.statusCode = status; | ||
}; | ||
@@ -11,0 +12,0 @@ |
@@ -5,5 +5,6 @@ var util = require('util'); | ||
var ArgumentError = function(message){ | ||
this.name = 'ArgumentError'; | ||
this.message = message || ''; | ||
Error.captureStackTrace(this, this.constructor); | ||
this.name = 'ArgumentError'; | ||
this.message = message; | ||
}; | ||
@@ -10,0 +11,0 @@ |
Sorry, the diff of this file is not supported yet
46360