lib/errors.js
function OAuthError(errorResponse, message) {
	this.name = "OAuthError";
	this.message = message || errorResponse.errorMessage;
	this.code = errorResponse.code;
	this.response = errorResponse;

	if (Error.captureStackTrace
		&& typeof Error.captureStackTrace === 'function') {
		Error.captureStackTrace(this, OAuthError);
	}
}
function OAuthError(errorResponse, message) {
	this.name = "OAuthError";
	this.message = message || errorResponse.errorMessage;
	this.code = errorResponse.code;
	this.response = errorResponse;

	if (Error.captureStackTrace
		&& typeof Error.captureStackTrace === 'function') {
		Error.captureStackTrace(this, OAuthError);
	}
}
function OAuthError ( errorResponse , message ) { this . name = "OAuthError" ; this . message = message || errorResponse . errorMessage ; this . code = errorResponse . code ; this . response = errorResponse ; if ( Error . captureStackTrace && typeof Error . captureStackTrace === 'function' ) { Error . captureStackTrace ( this , OAuthError ) ; } }
OAuthError  Creates a new ApiError supplied to callbacks when a valid error response is received.  - @constructor - @param {Object} errorResponse - The parsed API error response - @param {Object} message - The message
OAuthError Creates a new ApiError supplied to callbacks when a valid error response is received . -