aboutsummaryrefslogtreecommitdiff
path: root/node_modules/passport-google-oauth20/lib/errors/googleplusapierror.js
blob: 57a9bd298aa091ce21eb4a40988f64c75919348b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
 * `GooglePlusAPIError` error.
 *
 * References:
 *   - https://developers.google.com/+/web/api/rest/
 *
 * @constructor
 * @param {string} [message]
 * @param {number} [code]
 * @access public
 */
function GooglePlusAPIError(message, code) {
  Error.call(this);
  Error.captureStackTrace(this, arguments.callee);
  this.name = 'GooglePlusAPIError';
  this.message = message;
  this.code = code;
}

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


// Expose constructor.
module.exports = GooglePlusAPIError;