diff options
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; |
