weaviate-client
Version:
JS/TS client for Weaviate
20 lines (19 loc) • 465 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommandBase = void 0;
class CommandBase {
constructor(client) {
this.client = client;
this._errors = [];
}
get errors() {
return this._errors;
}
addError(error) {
this._errors = [...this.errors, error];
}
addErrors(errors) {
this._errors = [...this.errors, ...errors];
}
}
exports.CommandBase = CommandBase;