aboutsummaryrefslogtreecommitdiff
path: root/node_modules/passport-google-oauth20/lib/errors
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-27 01:45:42 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-27 01:45:42 +0000
commit3b002a6fb136b9e7e534ffbcfedabed72fcd373d (patch)
treed24c3cb1f9e0283de25c32259f692745c6b19bc1 /node_modules/passport-google-oauth20/lib/errors
parent25706820837bd05cdc3b186eb1d5ebabf9688a61 (diff)
Added passport-facbeook
Diffstat (limited to 'node_modules/passport-google-oauth20/lib/errors')
-rw-r--r--node_modules/passport-google-oauth20/lib/errors/googleplusapierror.js25
-rw-r--r--node_modules/passport-google-oauth20/lib/errors/userinfoerror.js22
2 files changed, 47 insertions, 0 deletions
diff --git a/node_modules/passport-google-oauth20/lib/errors/googleplusapierror.js b/node_modules/passport-google-oauth20/lib/errors/googleplusapierror.js
new file mode 100644
index 0000000..57a9bd2
--- /dev/null
+++ b/node_modules/passport-google-oauth20/lib/errors/googleplusapierror.js
@@ -0,0 +1,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;
diff --git a/node_modules/passport-google-oauth20/lib/errors/userinfoerror.js b/node_modules/passport-google-oauth20/lib/errors/userinfoerror.js
new file mode 100644
index 0000000..0b2c487
--- /dev/null
+++ b/node_modules/passport-google-oauth20/lib/errors/userinfoerror.js
@@ -0,0 +1,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;