Skip to content

Commit

Permalink
feat(errors): add "DownloadError"
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Jun 9, 2023
1 parent 65678b8 commit 29cfe8c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/mongodb-memory-server-core/src/util/errors.ts
Expand Up @@ -200,5 +200,14 @@ export class UnknownVersionError extends Error {
}
}

/**
* Error for when downloading fails
*/
export class DownloadError extends Error {
constructor(public url: string, public msg: string) {
super(`Download failed for url \"${url}\", Details:\n${msg}`);
}
}

/* Custom Generic Error class for MMS */
export class GenericMMSError extends Error {}

0 comments on commit 29cfe8c

Please sign in to comment.