mirror of https://github.com/actions/toolkit
22 lines
464 B
TypeScript
22 lines
464 B
TypeScript
|
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'
|
||
|
}
|
||
|
}
|