Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

Commit

Permalink
add EbayAuthenticationError. not yet used for anything at the clien…
Browse files Browse the repository at this point in the history
…t level.
  • Loading branch information
benbuckman committed Oct 29, 2015
1 parent 2ef2338 commit 52ca3fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ Get the version numbers of the APIs that make their version available.

The client exports and attempts to differentiate between `EbaySystemError`, `EbayRequestError`, and `EbayClientError`.

An `EbayAuthenticationError` is also defined, but not yet hooked up to anything.

See http://developer.ebay.com/DevZone/Shopping/docs/CallRef/types/ErrorClassificationCodeType.html
and http://developer.ebay.com/devzone/xml/docs/Reference/ebay/Errors/ErrorMessages.htm.

Expand Down
7 changes: 7 additions & 0 deletions lib/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ exports.EbayRequestError = function EbayRequestError(message) {
this.message = message;
};
inherits(exports.EbayRequestError, Error);

exports.EbayAuthenticationError = function EbayAuthenticationError(message) {
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message;
};
inherits(exports.EbayAuthenticationError, Error);

0 comments on commit 52ca3fe

Please sign in to comment.