* Adds the provided error to the module. * @param {Error} error the error * @returns {void}
(error)
| 788 | * @returns {void} |
| 789 | */ |
| 790 | addError(error) { |
| 791 | if (this._errors === undefined) { |
| 792 | this._errors = []; |
| 793 | } |
| 794 | this._errors.push(error); |
| 795 | } |
| 796 | |
| 797 | /** |
| 798 | * Returns list of errors if any. |
no test coverage detected