diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-27 01:45:42 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-27 01:45:42 +0000 |
| commit | 3b002a6fb136b9e7e534ffbcfedabed72fcd373d (patch) | |
| tree | d24c3cb1f9e0283de25c32259f692745c6b19bc1 /node_modules/passport-google-oauth20/lib/errors/userinfoerror.js | |
| parent | 25706820837bd05cdc3b186eb1d5ebabf9688a61 (diff) | |
Added passport-facbeook
Diffstat (limited to 'node_modules/passport-google-oauth20/lib/errors/userinfoerror.js')
| -rw-r--r-- | node_modules/passport-google-oauth20/lib/errors/userinfoerror.js | 22 |
1 files changed, 22 insertions, 0 deletions
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; |
