mirror of
https://git.bits.team/Bits/mod-manager.git
synced 2025-06-30 09:09:42 -04:00
Added downloading mods from Modrinth
This commit is contained in:
7
src/errors/download_error.ts
Normal file
7
src/errors/download_error.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export default class DownloadError extends Error {
|
||||
constructor(message: string | undefined) {
|
||||
super(message);
|
||||
this.name = this.constructor.name;
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
7
src/errors/mod_not_found_error.ts
Normal file
7
src/errors/mod_not_found_error.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export default class ModNotFoundError extends Error {
|
||||
constructor(message: string) {
|
||||
super(message);
|
||||
this.name = this.constructor.name;
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user