aboutsummaryrefslogtreecommitdiff
path: root/node_modules/passport-google-oauth20/lib/errors/userinfoerror.js
blob: 0b2c48790c16c275381f5cd19494da6fe13f40fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 * `UserInfoError` error.
 *
 * @constructor
 * @param {string} [message]
 * @param {string} [code]
 * @access public
 */
function UserInfoError(message, code) {
  Error.call(this);
  Error.captureStackTrace(this, arguments.callee);
  this.name = 'UserInfoError';
  this.message = message;
  this.code = code;
}

// Inherit from `Error`.
UserInfoError.prototype.__proto__ = Error.prototype;


// Expose constructor.
module.exports = UserInfoError;