first commit + some progress
This commit is contained in:
+25
@@ -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;
|
||||
Reference in New Issue
Block a user