2023-12-05 17:35:46 +00:00
|
|
|
export class FilesNotFoundError extends Error {
|
|
|
|
files: string[]
|
|
|
|
|
|
|
|
constructor(files: string[] = []) {
|
|
|
|
let message = 'No files were found to upload'
|
|
|
|
if (files.length > 0) {
|
|
|
|
message += `: ${files.join(', ')}`
|
|
|
|
}
|
|
|
|
|
|
|
|
super(message)
|
|
|
|
this.files = files
|
|
|
|
this.name = 'FilesNotFoundError'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class InvalidResponseError extends Error {
|
|
|
|
constructor(message: string) {
|
|
|
|
super(message)
|
|
|
|
this.name = 'InvalidResponseError'
|
|
|
|
}
|
|
|
|
}
|
2023-12-05 17:56:18 +00:00
|
|
|
|
|
|
|
export class ArtifactNotFoundError extends Error {
|
2023-12-05 18:35:26 +00:00
|
|
|
constructor(message = 'Artifact not found') {
|
2023-12-05 17:56:18 +00:00
|
|
|
super(message)
|
|
|
|
this.name = 'ArtifactNotFoundError'
|
|
|
|
}
|
|
|
|
}
|