Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | 'use strict'; |
||
9 | class TokenError extends OAuthError { |
||
10 | /** |
||
11 | * Create a new TokenError |
||
12 | * @param {string} message - Error message |
||
13 | * @param {string} [code] - Error code |
||
14 | * @param {string} [description] - Error description |
||
15 | * @param {string} [intuitTid] - Intuit transaction ID |
||
16 | */ |
||
17 | constructor(message, code, description, intuitTid) { |
||
18 | super(message, code || 'TOKEN_ERROR', description || message, intuitTid); |
||
19 | this.name = 'TokenError'; |
||
20 | Object.setPrototypeOf(this, TokenError.prototype); |
||
21 | } |
||
22 | } |
||
23 | |||
24 | module.exports = TokenError; |