Skip to content

Commit fe338b3

Browse files
committed
Added: missing exception info in use case method docs
1 parent b90d914 commit fe338b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/files/domain/useCases/AddUploadedFileToDataset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class AddUploadedFileToDataset implements UseCase<void> {
2020
* @param {File} [file] - The file object that has been uploaded.
2121
* @param {string} [storageId] - The storage identifier associated with the uploaded file.
2222
* @returns {Promise<void>} A promise that resolves when the file has been successfully added to the dataset.
23-
*
23+
* @throws {DirectUploadClientError} - If there are errors while performing the operation.
2424
*/
2525
async execute(datasetId: number | string, file: File, storageId: string): Promise<void> {
2626
await this.directUploadClient.addUploadedFileToDataset(datasetId, file, storageId)

src/files/domain/useCases/UploadFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class UploadFile implements UseCase<string> {
2020
* @param {function(number): void} [progress] - A callback function to monitor the upload progress, receiving the current progress as a number.
2121
* @param {AbortController} [abortController] - An AbortController to manage and abort the upload process if necessary.
2222
* @returns {Promise<string>} A promise that resolves to the storage identifier of the uploaded file.
23-
*
23+
* @throws {DirectUploadClientError} - If there are errors while performing the operation.
2424
*/
2525
async execute(
2626
datasetId: number | string,

0 commit comments

Comments
 (0)