UNPKG

@openveo/rest-nodejs-client

Version:
31 lines (24 loc) 706 B
'use strict'; /** * @module openveo-rest-nodejs-client/errors/AuthenticationError * @ignore */ const errors = process.requireRestClient('lib/errors/index.js'); const RequestError = errors.RequestError; class AuthenticationError extends RequestError { /** * Creates an authentication request error. * * Authentication errors are thrown when client failed to authenticate to the web service. * * @class AuthenticationError * @ignore * @extends module:openveo-rest-nodejs-client/errors/RequestError~RequestError * @constructor * @param {String} message The error message */ constructor(message) { super(message, 401); } } module.exports = AuthenticationError;