redink-errors
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.RedinkDatabaseError = exports.RedinkError = exports.RedinkHttpError = undefined; | ||
exports.RedinkUtilError = exports.RedinkDatabaseError = exports.RedinkError = exports.RedinkHttpError = undefined; | ||
@@ -90,2 +90,25 @@ var _httpErrors = require('http-errors'); | ||
return RedinkDatabaseError; | ||
}(RedinkError); | ||
/** | ||
* Redink database util error handler. | ||
* Class that extends the `RedinkError` class. | ||
* | ||
* @param {String} Message - Message describing the error. | ||
*/ | ||
var RedinkUtilError = exports.RedinkUtilError = function (_RedinkError2) { | ||
_inherits(RedinkUtilError, _RedinkError2); | ||
function RedinkUtilError(message) { | ||
_classCallCheck(this, RedinkUtilError); | ||
var _this4 = _possibleConstructorReturn(this, Object.getPrototypeOf(RedinkUtilError).call(this, message)); | ||
_this4.name = 'RedinkUtilError'; | ||
return _this4; | ||
} | ||
return RedinkUtilError; | ||
}(RedinkError); |
{ | ||
"name": "redink-errors", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Module to handle Redink errors", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
8219
78