UNPKG

ravendb

Version:
23 lines 760 B
import { StringUtil } from "../../../Utility/StringUtil.js"; import { throwError } from "../../../Exceptions/index.js"; export class AttachmentRequest { _name; _documentId; constructor(documentId, name) { if (StringUtil.isNullOrWhitespace(documentId)) { throwError("InvalidArgumentException", "DocumentId cannot be null or whitespace"); } if (StringUtil.isNullOrWhitespace(name)) { throwError("InvalidArgumentException", "Name cannot be null or whitespace"); } this._documentId = documentId; this._name = name; } get name() { return this._name; } get documentId() { return this._documentId; } } //# sourceMappingURL=AttachmentRequest.js.map