slouch/scripts/not-authenticated-error.js
Geoff Cox b7bf7c0bb6 initial (#1)
* initial

* feat(exclude-design-docs-iterator)

* fix(request): need to define unescape

* test(request): ECONNREFUSED/ENOTFOUND errors in different browsers

* test(circleci): run couchdb

* test(circleci): enable cors

* test(coverage): disable check for now

* test(circleci): missing nvm
2017-07-12 23:50:23 -07:00

11 lines
309 B
JavaScript

'use strict';
var NotAuthenticatedError = function (message) {
this.name = 'NotAuthenticatedError';
this.message = message;
};
NotAuthenticatedError.prototype = Object.create(Error.prototype);
NotAuthenticatedError.prototype.constructor = NotAuthenticatedError;
module.exports = NotAuthenticatedError;