@trenskow/api-error 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -269,6 +269,10 @@ class Aggregated extends ApiError {
|
|
|
269
269
|
this._errors.push(this._check(error));
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
+
get errors() {
|
|
273
|
+
return this._errors;
|
|
274
|
+
}
|
|
275
|
+
|
|
272
276
|
toJSON(options = {}) {
|
|
273
277
|
return merge(super.toJSON(options), {
|
|
274
278
|
errors: this._errors.map((error) => error.toJSON(options))
|